#include <pthreadlock.h>
Public Member Functions | |
| PthreadLock () throw () | |
| Lock constructor. | |
| void | acquire () throw () |
| Blockingly acquires this lock. | |
| bool | tryacquire () throw () |
| Tries to acquire this lock. | |
| void | release () throw () |
| Releases this lock. | |
| ~PthreadLock () throw () | |
| Lock destructor. | |
Friends | |
| class | PthreadCondition |
This really contains a pthread_mutex_t.
| void PthreadLock::acquire | ( | ) | throw () |
Blockingly acquires this lock.
This may result in a deadlock if used improperly.
| bool PthreadLock::tryacquire | ( | ) | throw () |
Tries to acquire this lock.
| void PthreadLock::release | ( | ) | throw () |
Releases this lock.
If the lock is not acquired the behaviour is undefined.
1.5.1