#include <ConditionHelper.h>
Public Member Functions | |
ConditionHelper () | |
bool | EnterReadLock (BasicLockable &rLockable) |
bool | EnterReadLock (MutexPtr pMutex) |
bool | EnterWriteLock (BasicLockable &rLockable, bool bExclusive=false) |
bool | EnterWriteLock (MutexPtr pMutex, bool bExclusive=false) |
void | ExitReadLock (BasicLockable &rLockable) |
void | ExitReadLock (MutexPtr pMutex) |
void | ExitWriteLock (BasicLockable &rLockable) |
void | ExitWriteLock (MutexPtr pMutex) |
Private Attributes | |
bool | m_bExclusive |
bool | m_bIsWritingList |
int | m_nNumListReads |
Condition | m_ReadCondition |
Condition | m_WriteCondition |
Definition at line 39 of file ConditionHelper.h.
Definition at line 36 of file ConditionHelper.cpp.
bool AVT::VmbAPI::ConditionHelper::EnterReadLock | ( | BasicLockable & | rLockable | ) |
Definition at line 43 of file ConditionHelper.cpp.
bool AVT::VmbAPI::ConditionHelper::EnterReadLock | ( | MutexPtr | pMutex | ) |
Definition at line 47 of file ConditionHelper.cpp.
bool AVT::VmbAPI::ConditionHelper::EnterWriteLock | ( | BasicLockable & | rLockable, |
bool | bExclusive = false |
||
) |
Definition at line 79 of file ConditionHelper.cpp.
bool AVT::VmbAPI::ConditionHelper::EnterWriteLock | ( | MutexPtr | pMutex, |
bool | bExclusive = false |
||
) |
Definition at line 83 of file ConditionHelper.cpp.
void AVT::VmbAPI::ConditionHelper::ExitReadLock | ( | BasicLockable & | rLockable | ) |
Definition at line 65 of file ConditionHelper.cpp.
void AVT::VmbAPI::ConditionHelper::ExitReadLock | ( | MutexPtr | pMutex | ) |
Definition at line 69 of file ConditionHelper.cpp.
void AVT::VmbAPI::ConditionHelper::ExitWriteLock | ( | BasicLockable & | rLockable | ) |
Definition at line 106 of file ConditionHelper.cpp.
void AVT::VmbAPI::ConditionHelper::ExitWriteLock | ( | MutexPtr | pMutex | ) |
Definition at line 110 of file ConditionHelper.cpp.
bool AVT::VmbAPI::ConditionHelper::m_bExclusive [private] |
Definition at line 62 of file ConditionHelper.h.
bool AVT::VmbAPI::ConditionHelper::m_bIsWritingList [private] |
Definition at line 61 of file ConditionHelper.h.
int AVT::VmbAPI::ConditionHelper::m_nNumListReads [private] |
Definition at line 63 of file ConditionHelper.h.
Definition at line 59 of file ConditionHelper.h.
Definition at line 60 of file ConditionHelper.h.