Qore Programming Language Reference Manual 1.19.2
Loading...
Searching...
No Matches
QC_AbstractSmartLock.dox.h
1
2namespace Qore {
4namespace Thread {
6
16
17public:
19
22
23public:
25
35string getName();
36
37public:
39
55bool lockOwner();
56
57public:
59
71int lockTID();
72};
73}
74}
The abstract base class for locks that support the internal API for use with the Condition class.
Definition: QC_AbstractSmartLock.dox.h:15
bool lockOwner()
Returns True if the calling thread owns the lock, False if not.
string getName()
Returns the name of the threading class directly inheriting this class.
constructor()
Throws an exception if called directly; this class can only be instantiated by builtin subclasses.
int lockTID()
Returns the TID of the thread owning the lock or -1 if the lock is currently not acquired.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2