Zen
A cross-platform functional programming language

Joiner::Impl Class Reference

Class for implementing Joiner. More...

List of all members.

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.

Detailed Description

Class for implementing Joiner.


Member Function Documentation

int decRef ( ) [inline]

Decrement reference.

Returns:
Reference count
bool enterRun ( ) [inline]

Enter run.

Returns:
True if success, else false
int getRef ( ) [inline]

Get reference.

Returns:
Reference count
bool isFirst ( ) const [inline]

Check if this is the first run.

Returns:
True if this is the first run
bool leaveRun ( ) [inline]

Leave run.

Returns:
True if success, else false

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines