Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Static Public Member Functions
caffe2::ThreadPool Class Reference

Public Member Functions

 ThreadPool (int numThreads)
 
int getNumThreads () const
 
void setMinWorkSize (size_t size)
 
size_t getMinWorkSize () const
 
void run (const std::function< void(int, size_t)> &fn, size_t range)
 
void withPool (const std::function< void(WorkersPool *)> &fn)
 

Static Public Member Functions

static std::unique_ptr< ThreadPooldefaultThreadPool ()
 

Detailed Description

Definition at line 32 of file ThreadPool.h.


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