Public Member Functions | |
XFCIMPORT void | lock () |
Locks the mutex. | |
XFCIMPORT void | unlock () |
Unlocks the mutex. | |
virtual XFCIMPORT | ~XFcMutex () |
Virtual destructor. | |
Static Public Member Functions | |
XFCIMPORT XFcMutex * | create () |
Creates a mutex object. | |
Protected Member Functions | |
XFcMutex () | |
Constructor. | |
INT | init () |
Initializes mutex. | |
void | doLock () |
Does the real lock operation. | |
void | doUnlock () |
Does the real unlock operation. | |
Protected Attributes | |
UINT32 | mLockingThreadId |
The id of the thread that has locked the mutex. | |
INT32 | mLockCount |
The number of times the locking thread has called lock(). | |
Private Attributes | |
void * | mMutex |
Mutex handle. |
In order to synchronize code running in several threads, you may want to use a mutex. All threads will pause on mutex lock if some thread has already locked it, and will resume once the locking thread calls unlock.
|
Virtual destructor.
|
|
Constructor.
|
|
Creates a mutex object.
|
|
Does the real lock operation.
|
|
Does the real unlock operation.
|
|
Initializes mutex.
|
|
Locks the mutex.
|
|
Unlocks the mutex.
|
|
The number of times the locking thread has called lock().
|
|
The id of the thread that has locked the mutex.
|
|
Mutex handle.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |