Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCThreadModel Class Reference

Provides definition of thread models. More...

#include <mcllib/MCThreadModel.h>

List of all members.

Public Types

enum  EModel { THRMODELSINGLE, THRMODELMULTI }
 Thread model. More...

Public Member Functions

bool isMultiThreaded () const
 Determine if the thread model is multi-threaded.
 MCThreadModel (EModel model)
 Construct a specific thread model.
 MCThreadModel ()
 Construct a multi-threaded model.
 operator bool () const
 Determine if the thread model is multi-threaded.
 operator EModel () const
 Get the thread model.


Detailed Description

Provides definition of thread models.

Thread models allow different semantics for thread related operations such as reference counting.


Member Enumeration Documentation

enum EModel
 

Thread model.

Enumeration values:
THRMODELSINGLE  Single threaded.
THRMODELMULTI  Multi-threaded.


Constructor & Destructor Documentation

MCThreadModel EModel  model  ) 
 

Construct a specific thread model.

Parameters:
model the type of thread model to construct


Member Function Documentation

bool isMultiThreaded  )  const
 

Determine if the thread model is multi-threaded.

Returns:
true if the thread model is multi-threaded, false otherwise

operator bool  )  const
 

Determine if the thread model is multi-threaded.

Returns:
true if the thread model is multi-threaded, false otherwise

operator EModel  )  const
 

Get the thread model.

Returns:
the EModel value of the thread model


Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen 1.3.9.1