ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Private Attributes | List of all members
mhthreads::Condition Class Reference

#include <Condition.h>

Inheritance diagram for mhthreads::Condition:
Inheritance graph
Collaboration diagram for mhthreads::Condition:
Collaboration graph

Public Member Functions

 Condition ()
 
void Signal ()
 
int Wait ()
 
int TimedWait (unsigned int sec, unsigned int nsec)
 

Private Attributes

std::condition_variable cond_
 
std::mutex mutex_
 

Detailed Description

Definition at line 35 of file Condition.h.

Constructor & Destructor Documentation

mhthreads::Condition::Condition ( )

Definition at line 40 of file Condition.h.

Member Function Documentation

void mhthreads::Condition::Signal ( )
int mhthreads::Condition::TimedWait ( unsigned int  sec,
unsigned int  nsec 
)
Returns
zero on successful completion

Definition at line 53 of file Condition.h.

References cond_, and mutex_.

Referenced by FrameLoopImpl::WaitForFirstFrame(), and FrameLoopImpl::WaitForNextFrame().

int mhthreads::Condition::Wait ( )
Returns
zero on successful completion

Definition at line 47 of file Condition.h.

References cond_, and mutex_.

Referenced by AddRecognition(), ReleaseSource(), SelectFileBasedSource(), and SelectSource().

Member Data Documentation

std::condition_variable mhthreads::Condition::cond_
private

Definition at line 36 of file Condition.h.

Referenced by Signal(), TimedWait(), and Wait().

std::mutex mhthreads::Condition::mutex_
private

Definition at line 37 of file Condition.h.

Referenced by TimedWait(), and Wait().


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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)