provides a safe and exception-safe way to hold locks in Qore, only to be used on the stack, cannot be dynamically allocated
More...
#include <QoreThreadLock.h>
Inherited by QoreThreadDataHelper, and QoreThreadListIterator.
provides a safe and exception-safe way to hold locks in Qore, only to be used on the stack, cannot be dynamically allocated
Ensures that locks are released by locking the lock when the object is created and releasing it when the object is destroyed. For a similar object that allows for unlocking the lock earlier than the object's destruction, see SafeLocker.
- See also
- AutoUnlocker
-
SafeLocker
-
OptLocker
◆ AutoLocker() [1/2]
DLLLOCAL AutoLocker::AutoLocker |
( |
QoreThreadLock * |
l, |
|
|
bool |
already_locked |
|
) |
| |
|
inline |
◆ AutoLocker() [2/2]
DLLLOCAL AutoLocker::AutoLocker |
( |
QoreThreadLock & |
l, |
|
|
bool |
already_locked |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: