Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
QC_AbstractSmartLock.dox.h
1 namespace Qore::Thread {
4 
14 
15 public:
17 
19  constructor();
20 
21 public:
23 
33 string getName();
34 
35 public:
37 
53 bool lockOwner();
54 
55 public:
57 
69 int lockTID();
70 };
71 };
The abstract base class for locks that support the internal API for use with the Condition class...
Definition: QC_AbstractSmartLock.dox.h:13
bool lockOwner()
Returns True if the calling thread owns the lock, False if not.
int lockTID()
Returns the TID of the thread owning the lock or -1 if the lock is currently not acquired.
constructor()
Throws an exception if called directly; this class can only be instantiated by builtin subclasses...
string getName()
Returns the name of the threading class directly inheriting this class.