#include <system_abstraction.h>
Public Member Functions | |
SystemLock () | |
~SystemLock () | |
void | lock (void) |
void | unlock (void) |
Private Attributes | |
pthread_mutex_t | mutex |
Definition at line 74 of file system_abstraction.h.
SystemLock::SystemLock | ( | ) | [inline] |
Definition at line 78 of file system_abstraction.h.
References mutex.
00078 { pthread_mutex_init(&mutex, NULL); }
SystemLock::~SystemLock | ( | ) | [inline] |
Definition at line 79 of file system_abstraction.h.
References mutex.
00079 { pthread_mutex_destroy(&mutex); }
void SystemLock::lock | ( | void | ) | [inline] |
Definition at line 81 of file system_abstraction.h.
References mutex.
Referenced by RWLockLoopTest::cslock(), NonblockingRWLock::enter_read(), MutexRWLock::enter_read(), SG_RWLock::enter_write(), NonblockingRWLock::enter_write(), MutexRWLock::enter_write(), and SyncOStream::lock().
00081 { pthread_mutex_lock(&mutex); }
void SystemLock::unlock | ( | void | ) | [inline] |
Definition at line 82 of file system_abstraction.h.
References mutex.
Referenced by RWLockLoopTest::csunlock(), NonblockingRWLock::enter_read(), MutexRWLock::leave_read(), SG_RWLock::leave_write(), NonblockingRWLock::leave_write(), MutexRWLock::leave_write(), and SyncOStream::unlock().
00082 { pthread_mutex_unlock(&mutex); }
pthread_mutex_t SystemLock::mutex [private] |
Definition at line 76 of file system_abstraction.h.
Referenced by lock(), SystemLock(), unlock(), and ~SystemLock().