Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Friends | List of all members
drwnThreadJob Class Referenceabstract

Interface for a thread job functor. More...

Inheritance diagram for drwnThreadJob:
drwnDecisionTreeThread drwnGaussianMixtureThread drwnNNGraphAppendImageJob drwnNNGraphDataMatrixThread drwnNNGraphMoveUpdateThread< DistanceMetric > drwnNNGraphProjectFeaturesThread drwnNNGraphSparseSubGradientThread drwnNNGraphSubGradientThread drwnNNGraphThreadedMoves::drwnNNGraphThreadedExhaustiveJob< DistanceMetric > drwnNNGraphThreadedMoves::drwnNNGraphThreadedInitializeJob< DistanceMetric > drwnNNGraphThreadedMoves::drwnNNGraphThreadedRescoreJob< DistanceMetric > drwnNNGraphThreadedMoves::drwnNNGraphThreadedUpdateJob< DistanceMetric > drwnPatchMatchThreadedInitialize drwnPatchMatchThreadedUpdate GridSearchJob InferenceThread labelTransferJob loadDataJob loadDataJob

Public Member Functions

virtual void operator() ()=0
 thread functor called by drwnThreadPool with the appropriate threadId
 

Protected Member Functions

unsigned threadId ()
 obtain the id for the thread running (or that ran) this job. The return value is guaranteed to be between 0 and numThreads. Useful for accessing a global resource without colliding with other jobs.
 
void lock ()
 acquire a lock (on all jobs in the same thread pool)
 
void unlock ()
 release the lock (on all jobs in the same thread pool)
 

Friends

class drwnThreadPool
 

Detailed Description

Interface for a thread job functor.

See Also
drwnThreadPool
Thread Pool

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