int getCount()
Returns the current counter value.
destructor()
Destroys the Counter object.
int getWaiting()
Returns the number of threads currently blocked on this object.
constructor(softint c=0)
Creates the Counter object.
int dec()
Atomically decrements the counter value.
Implements a class that can be used for blocking a thread until a counter reaches zero...
Definition: QC_Counter.dox.h:13
int inc()
Atomically increments the counter value.
nothing waitForZero()
Blocks a thread until the counter reaches zero.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
copy()
Creates a new Counter object with the same count as the original.