BMutex Class Reference

Mutex class. More...

#include <BMutex.h>

Inheritance diagram for BMutex:
BStringMutex

List of all members.

Public Types

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

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 10 Apr 2013 for LibBeamApi by  doxygen 1.6.1