#include <memory_mutex.h>
Nevrax France
Definition at line 51 of file memory_mutex.h.
Public Member Functions | |
CMemoryMutex () | |
Constructor. | |
void | enter () |
void | leave () |
~CMemoryMutex () | |
Destructor. | |
Private Attributes | |
sem_t | _Sem |
|
Constructor.
Definition at line 49 of file memory_mutex.cpp. References _Sem.
00050 { 00051 sem_init( const_cast<sem_t*>(&_Sem), 0, 1 ); 00052 } |
|
Destructor.
Definition at line 56 of file memory_mutex.cpp. References _Sem.
00057 {
00058 sem_destroy( const_cast<sem_t*>(&_Sem) ); // needs that no thread is waiting on the semaphore
00059 }
|
|
Definition at line 63 of file memory_mutex.cpp. References _Sem.
00064 { 00065 sem_wait( const_cast<sem_t*>(&_Sem) ); 00066 } |
|
Definition at line 70 of file memory_mutex.cpp. References _Sem.
00071 { 00072 sem_post( const_cast<sem_t*>(&_Sem) ); 00073 } |
|
Definition at line 134 of file memory_mutex.h. Referenced by CMemoryMutex(), enter(), leave(), and ~CMemoryMutex(). |