|
ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
|
Thread pool for parallel processing. More...
#include <advanced_spatial.hpp>
Public Member Functions | |
| ThreadPool (size_t threads=std::thread::hardware_concurrency()) | |
| ~ThreadPool () | |
| template<class F, class... Args> | |
| auto | enqueue (F &&f, Args &&... args) const -> std::future< typename std::result_of< F(Args...)>::type > |
| void | wait_for_completion () |
| size_t | get_thread_count () const |
Thread pool for parallel processing.
Definition at line 108 of file advanced_spatial.hpp.
|
explicit |
Definition at line 16 of file advanced_spatial.cpp.
| zlayout::spatial::ThreadPool::~ThreadPool | ( | ) |
Definition at line 36 of file advanced_spatial.cpp.
| auto zlayout::spatial::ThreadPool::enqueue | ( | F && | f, |
| Args &&... | args ) const -> std::future<typename std::result_of<F(Args...)>::type> |
Definition at line 48 of file advanced_spatial.cpp.
|
inline |
Definition at line 125 of file advanced_spatial.hpp.
| void zlayout::spatial::ThreadPool::wait_for_completion | ( | ) |
Definition at line 69 of file advanced_spatial.cpp.