Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
TaskThreadPool Class Reference

Public Member Functions

 TaskThreadPool (std::size_t pool_size)
 Constructor.
 
 ~TaskThreadPool ()
 Destructor.
 
template<typename Task >
void runTask (Task task)
 Add task to the thread pool if a thread is currently available.
 
void waitWorkComplete ()
 Wait for queue to be empty.
 

Detailed Description

Definition at line 10 of file thread_pool.h.


The documentation for this class was generated from the following file: