#include <mutex.h>
Definition at line 596 of file mutex.h.
Public Member Functions | |
CAccessor (CUnfairSynchronized< T > *cs) | |
get the mutex or wait | |
T & | value () |
access to the Value | |
~CAccessor () | |
release the mutex | |
Private Attributes | |
CUnfairSynchronized< T > * | Synchronized |
|
get the mutex or wait
Definition at line 602 of file mutex.h. References NLMISC::CUnfairSynchronized< T >::CAccessor::Synchronized.
00603 { 00604 Synchronized = cs; 00605 const_cast<CMutex&>(Synchronized->_Mutex).enter(); 00606 } |
|
release the mutex
Definition at line 609 of file mutex.h. References NLMISC::CUnfairSynchronized< T >::CAccessor::Synchronized.
00610 { 00611 const_cast<CMutex&>(Synchronized->_Mutex).leave(); 00612 } |
|
access to the Value
Definition at line 615 of file mutex.h. References NLMISC::CUnfairSynchronized< T >::CAccessor::Synchronized.
00616 { 00617 return const_cast<T&>(Synchronized->_Value); 00618 } |
|
Definition at line 598 of file mutex.h. Referenced by NLMISC::CUnfairSynchronized< T >::CAccessor::CAccessor(), NLMISC::CUnfairSynchronized< T >::CAccessor::value(), and NLMISC::CUnfairSynchronized< T >::CAccessor::~CAccessor(). |