![]() |
Qore Programming Language - C/C++ Library 2.1.1
|
Implements a recursive lock. More...
#include <QoreThreadLock.h>
Public Member Functions | |
| DLLEXPORT | QoreRecursiveThreadLock () |
| Creates the object. | |
| DLLLOCAL | QoreRecursiveThreadLock (const QoreRecursiveThreadLock &) |
| Creates a new object (not based on the original lock status) | |
Public Member Functions inherited from QoreThreadLock | |
| DLLLOCAL | QoreThreadLock () |
| creates the lock | |
| DLLLOCAL | QoreThreadLock (const pthread_mutexattr_t *ma) |
| creates the lock with the given attributes | |
| DLLLOCAL | QoreThreadLock (const QoreThreadLock &) |
| creates a new object (not based on the original lock status) | |
| DLLLOCAL | ~QoreThreadLock () |
| destroys the lock | |
| DLLLOCAL void | lock () |
| grabs the lock (assumes that the lock is unlocked) | |
| DLLLOCAL int | trylock () |
| attempts to acquire the mutex and returns the status immediately; does not block | |
| DLLLOCAL void | unlock () |
| releases the lock (assumes that the lock is locked) | |
Implements a recursive lock.