#include <QoreRWLock.h>
Public Member Functions | |
DLLLOCAL | QoreAutoRWReadLocker (QoreRWLock &n_l) |
creates the object and grabs the read lock | |
DLLLOCAL | QoreAutoRWReadLocker (QoreRWLock *n_l) |
creates the object and grabs the read lock | |
DLLLOCAL | ~QoreAutoRWReadLocker () |
destroys the object and releases the lock | |
Protected Attributes | |
QoreRWLock * | l |
the pointer to the lock that will be managed |
Ensures that read locks are released by locking the read lock when the object is created and releasing it when the object is destroyed.