#include <MTsync.hh>
Public Methods | |
| Mutex_ () | |
| Init the mutex to default settings. | |
| ~Mutex_ () | |
| dtor. | |
| void | lock () |
| lock(): locks the calling mutex object. | |
| bool | trylock () |
| trylock(): tries to lock the calling mutex object without blocking. More... | |
| void | unlock () |
| unlock(): unlocks the calling mutex object. | |
Private Methods | |
| Mutex_ (const Mutex_ &) | |
| Mutex_& | operator= (const Mutex_ &) |
Private Attributes | |
| pthread_mutex_t | Mutex |
| a POSIX mutex. | |
Initialisation, destroying and the lock/unlock operations are implemented.
Definition at line 43 of file MTsync.hh.
|
|
Init the mutex to default settings.
|
|
|
dtor.
|
|
|
|
|
|
lock(): locks the calling mutex object.
|
|
|
trylock(): tries to lock the calling mutex object without blocking. Returns true if the locking was successful. |
|
|
unlock(): unlocks the calling mutex object.
|
|
|
|
|
|
a POSIX mutex.
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001