#include <MutexLock.h>
Public Member Functions | |
| Mutex (RelocPtr< char > name) throw (ShareException) | |
| Create mutex. | |
| ~Mutex () throw () | |
| Destroy mutex. | |
| void | lock (LockData *data) throw (ShareException) |
| Lock mutex. | |
| void | unlock (LockData *data) throw (ShareException) |
| Unlock mutex. | |
Classes | |
| struct | LockData |
| Mutex per-lock specific data. More... | |
Definition at line 40 of file MutexLock.h.
| Share::Mutex::Mutex | ( | RelocPtr< char > | name | ) | throw (ShareException) |
Create mutex.
| name | Name of mutex to create. |
| ShareException | Library-specific exception derived from std::bad_alloc |
| Share::Mutex::~Mutex | ( | ) | throw () |
Destroy mutex.
| void Share::Mutex::lock | ( | LockData * | data | ) | throw (ShareException) |
Lock mutex.
Process will be susspended if mutex is already locked.
| data | Pointer to structure containing per-lock specific data. |
| ShareException | Library-specific exception derived from std::bad_alloc |
| void Share::Mutex::unlock | ( | LockData * | data | ) | throw (ShareException) |
Unlock mutex.
| data | Pointer to structure containing per-lock specific data. |
| ShareException | Library-specific exception derived from std::bad_alloc |
1.5.2