Caffe
|
#include <internal_thread.hpp>
Public Member Functions | |
void | StartInternalThread () |
void | StopInternalThread () |
bool | is_started () const |
Protected Member Functions | |
virtual void | InternalThreadEntry () |
bool | must_stop () |
Virtual class encapsulate boost::thread for use in base class The child class will acquire the ability to run a single thread, by reimplementing the virtual function InternalThreadEntry.
void caffe::InternalThread::StartInternalThread | ( | ) |
Caffe's thread local state will be initialized using the current thread values, e.g. device id, solver index etc. The random seed is initialized using caffe_rng_rand.
void caffe::InternalThread::StopInternalThread | ( | ) |
Will not return until the internal thread has exited.