Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
c10::TaskThreadPoolBase Class Referenceabstract
Inheritance diagram for c10::TaskThreadPoolBase:
c10::ThreadPool c10::TaskThreadPool

Public Member Functions

virtual void run (const std::function< void()> &func)=0
 
virtual size_t size () const =0
 
virtual size_t numAvailable () const =0
 The number of available (i.e. More...
 
virtual bool inThreadPool () const =0
 Check if the current thread is from the thread pool.
 

Detailed Description

Definition at line 22 of file thread_pool.h.

Member Function Documentation

virtual size_t c10::TaskThreadPoolBase::numAvailable ( ) const
pure virtual

The number of available (i.e.

idle) threads in this thread pool.

Implemented in c10::ThreadPool.


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