Qore Programming Language
1.9.1
|
provides a safe and exception-safe way to release and re-acquire locks in Qore, only to be used on the stack, cannot be dynamically allocated More...
#include <QoreThreadLock.h>
Public Member Methods | |
DLLLOCAL | AutoUnlocker (QoreThreadLock &l) |
creates the object and releases the lock | |
DLLLOCAL | AutoUnlocker (QoreThreadLock *l) |
creates the object and releases the lock | |
DLLLOCAL | ~AutoUnlocker () |
grabs the lock and destroys the object | |
Private Attributes | |
QoreThreadLock * | lck |
the pointer to the lock that will be managed | |
provides a safe and exception-safe way to release and re-acquire locks in Qore, only to be used on the stack, cannot be dynamically allocated
Ensures that locks are released when the object is created and re-acquired when the object is destroyed.