Caffe2 - C++ API
A deep learning, cross platform ML framework
Data Structures | Public Member Functions
caffe2::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 run (const std::function< void()> &func)
 
template<typename Task >
void runTaskWithID (Task task)
 
void waitWorkComplete ()
 Wait for queue to be empty.
 

Detailed Description

Definition at line 29 of file thread_pool.h.


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