Darwin
1.10(beta)
|
Public Member Functions | |
drwnNNGraphSparseSubGradientThread (const drwnNNGraphLearner *learner, MatrixXd *G, drwnNNGraphNodeAnnotation< drwnNNGraphLearnSparseViolatedConstraint > *lastUpdated, unsigned imgIndx) | |
drwnNNGraphSparseSubGradientThread (const drwnNNGraphLearner *learner, MatrixXd *G, drwnNNGraphNodeAnnotation< drwnNNGraphLearnSparseViolatedConstraint > *lastUpdated, const set< unsigned > &imgIndxes) | |
void | operator() () |
thread functor called by drwnThreadPool with the appropriate threadId | |
Protected Attributes | |
const drwnNNGraphLearner * | _learner |
MatrixXd * | _G |
drwnNNGraphNodeAnnotation < drwnNNGraphLearnSparseViolatedConstraint > * | _lastUpdated |
set< unsigned > | _imgIndxes |
Additional Inherited Members | |
![]() | |
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) | |