Zen
A cross-platform functional programming language
|
Class for implementing Joiner. More...
Public Member Functions | |
Impl () | |
Default constructor. | |
~Impl () | |
Destructor. | |
void | incRef () |
Increment reference. | |
int | decRef () |
Decrement reference. | |
int | getRef () |
Get reference. | |
bool | isFirst () const |
Check if this is the first run. | |
bool | enterRun () |
Enter run. | |
bool | leaveRun () |
Leave run. | |
Private Attributes | |
int | _refCount |
Refcount for this Joiner. | |
int | _waiters |
Number of fibers waiting on this. | |
int | _run |
Number of runs executed. | |
int | _locked |
Lock count. | |
z::mutex | _mutex |
Mutex for locking. |
Class for implementing Joiner.
int decRef | ( | ) | [inline] |
Decrement reference.
bool enterRun | ( | ) | [inline] |
Enter run.
int getRef | ( | ) | [inline] |
Get reference.
bool isFirst | ( | ) | const [inline] |
Check if this is the first run.
bool leaveRun | ( | ) | [inline] |
Leave run.