#include <dummylock.h>
Public Member Functions | |
| DummyLock () throw () | |
| Lock constructor. | |
| void | acquire () throw () |
| Blockingly acquires this lock. | |
| bool | tryacquire () throw () |
| Tries to acquire this lock. | |
| void | release () throw () |
| Releases this lock. | |
| ~DummyLock () throw () | |
| Lock destructor. | |
| void DummyLock::acquire | ( | ) | throw () [inline] |
Blockingly acquires this lock.
As there is no way to release an acquired lock while acquiring it in single threaded mode this version will assert the lock not being locked.
| bool DummyLock::tryacquire | ( | ) | throw () [inline] |
Tries to acquire this lock.
| void DummyLock::release | ( | ) | throw () [inline] |
Releases this lock.
If the lock is not acquired the behaviour is undefined.
1.5.1