|
Argus Camera Sample
Argus Camera Sample
|
Conditional. More...
#include <ConditionVariable.h>
Public Member Functions | |
| ConditionVariable () | |
| ~ConditionVariable () | |
| bool | initialize () |
| Create the underlying condition variable. | |
| bool | shutdown () |
| Destroy the underlying condition variable. | |
| bool | broadcast () const |
| Broadcast the condition variable. | |
| bool | signal () const |
| Signal the condition variable. | |
| bool | wait (const Mutex &mutex) const |
| Wait on the condition variable. | |
Private Member Functions | |
| ConditionVariable (ConditionVariable &other) | |
| Hide copy constructor and assignment operator. | |
| const ConditionVariable & | operator= (const ConditionVariable &) |
Private Attributes | |
| bool | m_initialized |
| pthread_cond_t | m_cond |
| pthread conditional variable, this is 'mutable' so that 'const' functions can be used. | |
Conditional.
Definition at line 42 of file ConditionVariable.h.
| ArgusSamples::ConditionVariable::ConditionVariable | ( | ) |
Definition at line 35 of file ConditionVariable.cpp.
| ArgusSamples::ConditionVariable::~ConditionVariable | ( | ) |
Definition at line 40 of file ConditionVariable.cpp.
|
private |
Hide copy constructor and assignment operator.
| bool ArgusSamples::ConditionVariable::broadcast | ( | ) | const |
Broadcast the condition variable.
This method is declared const for convenience.
Definition at line 69 of file ConditionVariable.cpp.
| bool ArgusSamples::ConditionVariable::initialize | ( | ) |
Create the underlying condition variable.
This method must be called before any other methods.
Definition at line 45 of file ConditionVariable.cpp.
|
private |
| bool ArgusSamples::ConditionVariable::shutdown | ( | ) |
Destroy the underlying condition variable.
After this call, this object can no longer be used (until and unless a future call to initialize()). Calling this method if the object is not initialized generates no error, but silently returns.
Definition at line 57 of file ConditionVariable.cpp.
| bool ArgusSamples::ConditionVariable::signal | ( | ) | const |
Signal the condition variable.
This method is declared const for convenience.
Definition at line 79 of file ConditionVariable.cpp.
| bool ArgusSamples::ConditionVariable::wait | ( | const Mutex & | mutex | ) | const |
Wait on the condition variable.
This method is declared const for convenience.
| [in] | mutex | The mutex that will be released while waiting. When multiple threads are waiting concurrently, they must all be using the same mutex. |
Definition at line 89 of file ConditionVariable.cpp.
|
mutableprivate |
pthread conditional variable, this is 'mutable' so that 'const' functions can be used.
Definition at line 83 of file ConditionVariable.h.
|
private |
Definition at line 79 of file ConditionVariable.h.
1.8.1