BMutex Class Reference

Mutex class. More...

#include <BMutex.h>

Inheritance diagram for BMutex:

BStringMutex List of all members.

Public Types

 Normal
 Recursive
enum  Type { Normal, Recursive }

Public Member Functions

 BMutex (Type type=Normal)
 BMutex (const BMutex &mutex)
 ~BMutex ()
int lock ()
 Set lock, wait as necessary.
int timedLock (int timeoutUs)
 Set lock, wait as necessary but timeout after given time.
int unlock ()
 Unlock the lock.
int tryLock ()
 Test the lock.
BMutexoperator= (const BMutex &mutex)

Private Attributes

pthread_mutex_t omutex

Detailed Description

Mutex class.


Member Enumeration Documentation

enum BMutex::Type

Enumerator:
Normal 
Recursive 


Constructor & Destructor Documentation

BMutex::BMutex ( Type  type = Normal  ) 

BMutex::BMutex ( const BMutex mutex  ) 

BMutex::~BMutex (  ) 


Member Function Documentation

int BMutex::lock (  ) 

Set lock, wait as necessary.

BMutex & BMutex::operator= ( const BMutex mutex  ) 

int BMutex::timedLock ( int  timeoutUs  ) 

Set lock, wait as necessary but timeout after given time.

int BMutex::tryLock (  ) 

Test the lock.

int BMutex::unlock (  ) 

Unlock the lock.


Member Data Documentation

pthread_mutex_t BMutex::omutex [private]


The documentation for this class was generated from the following files:
Generated on Thu Jun 3 17:30:47 2010 for LibBeamApi by  doxygen 1.4.7