ROOT 6.18/05 Reference Guide |
Public Member Functions | |
TMutex (Bool_t recursive=kFALSE) | |
Create a mutex lock. More... | |
virtual | ~TMutex () |
Int_t | CleanUp () |
Clean up of mutex. More... | |
TVirtualMutex * | Factory (Bool_t recursive=kFALSE) |
Create mutex and return pointer to it. More... | |
Int_t | Lock () |
Lock the mutex. More... | |
void | lock () |
Int_t | TryLock () |
Try to lock mutex. More... | |
Int_t | UnLock () |
Unlock the mutex. More... | |
void | unlock () |
Public Member Functions inherited from TVirtualMutex | |
TVirtualMutex (Bool_t=kFALSE) | |
virtual | ~TVirtualMutex () |
Int_t | Acquire () |
virtual Int_t | CleanUp ()=0 |
virtual TVirtualMutex * | Factory (Bool_t=kFALSE)=0 |
virtual Int_t | Lock ()=0 |
Int_t | Release () |
virtual Int_t | TryLock ()=0 |
virtual Int_t | UnLock ()=0 |
Private Member Functions | |
TMutex (const TMutex &) | |
TMutex & | operator= (const TMutex &) |
Private Attributes | |
TMutexImp * | fMutexImp |
Friends | |
class | TCondition |
class | TThread |
#include <TMutex.h>
|
private |
Create a mutex lock.
The actual mutex implementation will be provided via the TThreadFactory.
Definition at line 34 of file TMutex.cxx.
|
virtual |
|
virtual |
Create mutex and return pointer to it.
Calling function must care about proper deletion. The function is intended to be used in connection with the R__LOCKGUARD2 macro for local thread protection. Since "new" is used the TStorage class has to be protected by gGlobalMutex.
Implements TVirtualMutex.
Definition at line 87 of file TMutex.cxx.
|
virtual |
Lock the mutex.
Returns 0 when no error, EDEADLK when mutex was already locked by this thread and this mutex is not reentrant.
Implements TVirtualMutex.
Definition at line 46 of file TMutex.cxx.
|
virtual |
Try to lock mutex.
Returns 0 when no error, EDEADLK when mutex was already locked by this thread and this mutex is not reentrant.
Implements TVirtualMutex.
Definition at line 57 of file TMutex.cxx.
|
virtual |
Unlock the mutex.
Returns 0 when no error, EPERM when mutex was already unlocked by this thread.
Implements TVirtualMutex.
Definition at line 68 of file TMutex.cxx.
|
friend |