#include <dummylock.h>
Public Member Functions | |
| DummyLock () | |
| Lock constructor. | |
| void | acquire () |
| Blockingly acquires this lock. | |
| bool | tryacquire () |
| Tries to acquire this lock. | |
| void | release () |
| Releases this lock. | |
| ~DummyLock () | |
| Lock destructor. | |
| void DummyLock::acquire | ( | ) | [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 | ( | ) | [inline] |
Tries to acquire this lock.
| void DummyLock::release | ( | ) | [inline] |
Releases this lock.
If the lock is not acquired the behaviour is undefined.
1.5.1