Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::MutexImpl Class Reference
Inheritance diagram for OVR::MutexImpl:
Inheritance graph
Collaboration diagram for OVR::MutexImpl:
Collaboration graph

Public Member Functions

 MutexImpl (Mutex *pmutex, bool recursive=1)
 
 ~MutexImpl ()
 
void DoLock ()
 
bool TryLock ()
 
void Unlock (Mutex *pmutex)
 
bool IsLockedByAnotherThread (Mutex *pmutex)
 
bool IsSignaled () const
 

Private Attributes

pthread_mutex_t SMutex
 
bool Recursive
 
unsigned LockCount
 
pthread_t LockedBy
 

Friends

class WaitConditionImpl
 

Detailed Description

Definition at line 49 of file OVR_ThreadsPthread.cpp.

Constructor & Destructor Documentation

OVR::MutexImpl::MutexImpl ( Mutex pmutex,
bool  recursive = 1 
)

Definition at line 77 of file OVR_ThreadsPthread.cpp.

OVR::MutexImpl::~MutexImpl ( )

Definition at line 98 of file OVR_ThreadsPthread.cpp.

Member Function Documentation

void OVR::MutexImpl::DoLock ( )

Definition at line 105 of file OVR_ThreadsPthread.cpp.

bool OVR::MutexImpl::IsLockedByAnotherThread ( Mutex pmutex)

Definition at line 137 of file OVR_ThreadsPthread.cpp.

bool OVR::MutexImpl::IsSignaled ( ) const

Definition at line 148 of file OVR_ThreadsPthread.cpp.

bool OVR::MutexImpl::TryLock ( )

Definition at line 113 of file OVR_ThreadsPthread.cpp.

void OVR::MutexImpl::Unlock ( Mutex pmutex)

Definition at line 125 of file OVR_ThreadsPthread.cpp.

Friends And Related Function Documentation

friend class WaitConditionImpl
friend

Definition at line 57 of file OVR_ThreadsPthread.cpp.

Field Documentation

unsigned OVR::MutexImpl::LockCount
private

Definition at line 54 of file OVR_ThreadsPthread.cpp.

pthread_t OVR::MutexImpl::LockedBy
private

Definition at line 55 of file OVR_ThreadsPthread.cpp.

bool OVR::MutexImpl::Recursive
private

Definition at line 53 of file OVR_ThreadsPthread.cpp.

pthread_mutex_t OVR::MutexImpl::SMutex
private

Definition at line 52 of file OVR_ThreadsPthread.cpp.


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