rpa::posix_mutex Class Reference

#include <posix.h>

List of all members.

Public Member Functions

 posix_mutex ()
 ~posix_mutex ()
void lock (void)
void unlock (void)
bool trylock (void)

Private Member Functions

 posix_mutex (const posix_mutex &)
 Mutexes are never copiable nor assignable.
posix_mutexoperator= (const posix_mutex &)

Private Attributes

pthread_mutex_t _mtx

Friends

class posix_condition
 This class needs to access the internal mutex.


Detailed Description

posix_mutex This wraps a POSIX mutex to make it conformant to the mutex interface of this library. This wrapper is extremely thin : Its main job is to make a class out of a couple of C functions.


Constructor & Destructor Documentation

rpa::posix_mutex::posix_mutex ( const posix_mutex  )  [private]

Mutexes are never copiable nor assignable.

rpa::posix_mutex::posix_mutex (  ) 

rpa::posix_mutex::~posix_mutex (  ) 


Member Function Documentation

void rpa::posix_mutex::lock ( void   ) 

posix_mutex& rpa::posix_mutex::operator= ( const posix_mutex  )  [private]

bool rpa::posix_mutex::trylock ( void   ) 

void rpa::posix_mutex::unlock ( void   ) 


Friends And Related Function Documentation

friend class posix_condition [friend]

This class needs to access the internal mutex.


Member Data Documentation

pthread_mutex_t rpa::posix_mutex::_mtx [private]


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 10:20:34 2007 for rpa by  doxygen 1.4.7