#include <mutex.h>
Definition at line 651 of file mutex.h.
Public Member Functions | |
CAccessor (CFairSynchronized< T > *cs) | |
get the mutex or wait | |
T & | value () |
access to the Value | |
~CAccessor () | |
release the mutex | |
Private Attributes | |
CFairSynchronized< T > * | Synchronized |
|
get the mutex or wait
Definition at line 657 of file mutex.h.
00658 { 00659 Synchronized = cs; 00660 const_cast<CFairMutex&>(Synchronized->_Cs).enter(); 00661 } |
|
release the mutex
Definition at line 664 of file mutex.h.
00665 { 00666 const_cast<CFairMutex&>(Synchronized->_Cs).leave(); 00667 } |
|
access to the Value
Definition at line 670 of file mutex.h.
00671 { 00672 return const_cast<T&>(Synchronized->_Value); 00673 } |
|
|