|
CAPD::DynSys Library
6.0.0
|
#include <capd/threading/ThreadPool.h>
Public Types | |
| typedef std::unique_lock< std::mutex > | Lock |
Public Member Functions | |
| LambdaTask (F &_f) | |
| void | run (unsigned threadId) |
| void | join () |
| wait for task completion More... | |
| void | execute (unsigned threadId) |
| This method can be invoked by the user but it is recomended to run tasks through a ThreadPool instance. More... | |
Static Public Member Functions | |
| template<class F > | |
| static LambdaTask< F > * | createFromLambda (F &f) |
Public Attributes | |
| F & | f |
|
inherited |
|
inline |
|
inlineinherited |
This method can be invoked by the user but it is recomended to run tasks through a ThreadPool instance.
|
inlineinherited |
wait for task completion
|
inlinevirtual |
Implements capd::threading::Task.
| F& capd::threading::LambdaTask< F >::f |