Caffe
Public Member Functions | Protected Member Functions | List of all members
caffe::InternalThread Class Reference

#include <internal_thread.hpp>

Inheritance diagram for caffe::InternalThread:
caffe::BasePrefetchingDataLayer< Dtype > caffe::DataLayer< Dtype > caffe::ImageDataLayer< Dtype > caffe::WindowDataLayer< Dtype >

Public Member Functions

void StartInternalThread ()
 
void StopInternalThread ()
 
bool is_started () const
 

Protected Member Functions

virtual void InternalThreadEntry ()
 
bool must_stop ()
 

Detailed Description

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.

Member Function Documentation

◆ StartInternalThread()

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.

◆ StopInternalThread()

void caffe::InternalThread::StopInternalThread ( )

Will not return until the internal thread has exited.


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