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