Qore Programming Language Reference Manual: lib/QC_Gate.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
QC_Gate.dox.h
1 namespace Qore::Thread {
4
24 class Gate {
25
26 public:
28
33 constructor();
34
35 public:
37
42 copy();
43
44 public:
46
55 destructor();
56
57 public:
59
72 int enter(timeout timeout_ms);
73
74 public:
76
84 nothing enter();
85
86 public:
88
97 int exit();
98
99 public:
101
111 int numInside();
112
113 public:
115
123 int numWaiting();
124
125 public:
127
139 int tryEnter();
140 };
141 };
Qore::Thread::Gate::numInside
int numInside()
Returns the current lock count.
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::numWaiting
int numWaiting()
Returns the number of threads blocked on the Gate.
Qore::Thread::Gate::copy
copy()
Creates a new Gate object, not based on the original.
Qore::Thread::Gate
The Gate class implements a reentrant thread lock.
Definition: QC_Gate.dox.h:24
Qore::Thread::Gate::destructor
destructor()
Destroys the Gate object.
Qore::Thread::Gate::constructor
constructor()
Creates a new Gate object.
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::enter
nothing enter()
Increments the lock count if the lock is unlocked or already owned by the same thread, otherwise blocks until the lock counter reaches zero.