#include <thread_pool.h>
Definition at line 16 of file thread_pool.h.
◆ ThreadPool()
| nndeploy::thread_pool::ThreadPool::ThreadPool |
( |
int |
size = 4 | ) |
|
|
inlineexplicit |
◆ commit()
template<typename FunctionType >
| auto nndeploy::thread_pool::ThreadPool::commit |
( |
const FunctionType & |
func | ) |
-> std::future<decltype(std::declval<FunctionType>()())> |
|
inline |
◆ commit_to()
template<typename F >
| auto nndeploy::thread_pool::ThreadPool::commit_to |
( |
int |
slot, |
|
|
F && |
f |
|
) |
| -> std::future<std::invoke_result_t<F>> |
|
inline |
◆ destroy()
◆ init()
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/nndeploy-zh/checkouts/stable/framework/include/nndeploy/thread_pool/thread_pool.h