cartobase  4.5.0
carto::Mutex Class Reference

#include <cartobase/thread/mutex.h>

Classes

struct  Private
 Private structure, specialized for pthread implementation only. More...
 

Public Types

enum  Type {
  Fast = 0, ProcessPrivate = 0, ErrorChecking = 1, Recursive = 2,
  TypeMask = 3, ProcessShared = 4, SharedMask = 4
}
 

Public Member Functions

 Mutex (int x=Fast)
 
virtual ~Mutex ()
 
void lock ()
 
void unlock ()
 
void setProcessPrivate ()
 
void setProcessShared ()
 
void setRecursive ()
 
void setFast ()
 
void setErrorChecking ()
 
void setType (int x)
 

Friends

class ThreadCondition
 

Detailed Description

Definition at line 46 of file mutex.h.

Member Enumeration Documentation

Enumerator
Fast 
ProcessPrivate 
ErrorChecking 
Recursive 
TypeMask 
ProcessShared 
SharedMask 

Definition at line 49 of file mutex.h.

Constructor & Destructor Documentation

carto::Mutex::Mutex ( int  x = Fast)
virtual carto::Mutex::~Mutex ( )
virtual

Member Function Documentation

void carto::Mutex::lock ( )
void carto::Mutex::setErrorChecking ( )
void carto::Mutex::setFast ( )
void carto::Mutex::setProcessPrivate ( )
void carto::Mutex::setProcessShared ( )
void carto::Mutex::setRecursive ( )
void carto::Mutex::setType ( int  x)
void carto::Mutex::unlock ( )

Friends And Related Function Documentation

friend class ThreadCondition
friend

Definition at line 75 of file mutex.h.


The documentation for this class was generated from the following file: