 |
Qore Programming Language Reference Manual
0.9.4.2
|
83 int enter(timeout timeout_ms);
int numWaiting()
Returns the number of threads blocked on the Gate.
constructor()
Creates a new Gate object.
int tryEnter()
Acquires the lock if it is unlocked or locked by the same thread, in which case this method returns 0...
The Gate class implements a reentrant thread lock.
Definition: QC_Gate.dox.h:35
int exit()
Decrements the lock counter; if it reaches zero then the lock is unlocked and any blocked threads are...
int numInside()
Returns the current lock count.
copy()
Creates a new Gate object, not based on the original.
nothing enter()
Increments the lock count if the lock is unlocked or already owned by the same thread,...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
destructor()
Destroys the Gate object.