cgma
RealMutex Class Reference
Inheritance diagram for RealMutex:
CubitConcurrent::Mutex

List of all members.

Public Member Functions

 RealMutex ()
 ~RealMutex ()
virtual void lock ()
virtual void unlock ()

Protected Attributes

pthread_mutex_t mMutex

Detailed Description

Definition at line 38 of file CubitConcurrentApi.cpp.


Constructor & Destructor Documentation

RealMutex::RealMutex ( ) [inline]

Definition at line 41 of file CubitConcurrentApi.cpp.

    {
      pthread_mutex_init(&mMutex, NULL);
    }
RealMutex::~RealMutex ( ) [inline]

Definition at line 45 of file CubitConcurrentApi.cpp.

    {
      pthread_mutex_destroy(&mMutex);
    }

Member Function Documentation

virtual void RealMutex::lock ( ) [inline, virtual]

Implements CubitConcurrent::Mutex.

Definition at line 49 of file CubitConcurrentApi.cpp.

    {
      pthread_mutex_lock(&mMutex);
    }
virtual void RealMutex::unlock ( ) [inline, virtual]

Implements CubitConcurrent::Mutex.

Definition at line 53 of file CubitConcurrentApi.cpp.

    {
      pthread_mutex_unlock(&mMutex);
    }

Member Data Documentation

pthread_mutex_t RealMutex::mMutex [protected]

Definition at line 58 of file CubitConcurrentApi.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines