Public Member Functions | Protected Member Functions | Protected Attributes

base::Mutex Class Reference

A mutex variable. More...

#include <libppbase/base/Mutex.h>

Inheritance diagram for base::Mutex:
base::Daemon base::Log base::SharedLock base::WorkerThread base_soap::SOAPServers base::MTSocketDaemon base::STEventDaemon

List of all members.

Public Member Functions

 Mutex ()
 Constructor.
 ~Mutex ()
 Destructor.
pthread_mutex_t * getMutex ()
 Gets the internal mutex object.
void lock ()
 Locks the mutex.
void unlock ()
 Unlocks the mutex.

Protected Member Functions

 DISALLOW_COPY_CONSTRUCTOR_AND_ASSIGNMENT (Mutex)
 mutexes cannot be duplicated

Protected Attributes

pthread_mutex_t _mutex
 the pthread mutex variable

Detailed Description

A mutex variable.

Author:
Christoph Schwarz
Version:
$Id: Mutex.h 21 2010-09-05 04:18:17Z cschwarz1 $

Member Function Documentation

pthread_mutex_t* base::Mutex::getMutex (  ) 

Gets the internal mutex object.

Returns:
the internal mutex object

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