#include <TaggedThreadPool.hxx>
Public Member Functions | |
TaggedThreadPool (const int threadCount=ThreadCountCompileTime, const std::string &threadNamePrefix=std::string{}) | |
void | addThread (const int numThreads2Add) |
template<typename Task , typename Params , typename = std::enable_if_t<std::is_invocable_v<Task, const std::any &> && std::is_same_v<std::decay_t<Params>, std::any>>> | |
void | addJob (Task &&task, Params &¶ms, const std::optional< uint32_t > &threadSN=std::nullopt) |
void | AddJob (const std::function< void()> &task) |
size_t | threadCount () const |
size_t | taskCount () const |
~TaggedThreadPool () | |
Definition at line 25 of file TaggedThreadPool.hxx.
|
inlineexplicit |
Definition at line 27 of file TaggedThreadPool.hxx.
|
inline |
Definition at line 85 of file TaggedThreadPool.hxx.
|
inline |
Definition at line 66 of file TaggedThreadPool.hxx.
References TaggedThreadPool< ThreadCountCompileTime >::addJob().
|
inline |
threadSN是从0开始的整数
Definition at line 55 of file TaggedThreadPool.hxx.
Referenced by TaggedThreadPool< ThreadCountCompileTime >::AddJob().
|
inline |
Definition at line 31 of file TaggedThreadPool.hxx.
|
inline |
Definition at line 76 of file TaggedThreadPool.hxx.
References TaggedThreadPool< ThreadCountCompileTime >::taskCount().
Referenced by TaggedThreadPool< ThreadCountCompileTime >::taskCount().
|
inline |
Definition at line 72 of file TaggedThreadPool.hxx.