Logo ROOT   6.10/09
Reference Guide
Classes | Macros | Typedefs
TMCAutoLock.h File Reference
#include <pthread.h>
Include dependency graph for TMCAutoLock.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  TMCImpMutexAutoLock
 Realization of TMCTemplateAutoLock with TMCMutex. More...
 
class  TMCTemplateAutoLock< M, L, U >
 Template classe which provides a mechanism to create a mutex and locks/unlocks it. More...
 

Macros

#define TMCMULTITHREADED   1
 
#define TMCMUTEX_INITIALIZER   PTHREAD_MUTEX_INITIALIZER
 
#define TMCMUTEXLOCK   pthread_mutex_lock
 
#define TMCMUTEXUNLOCK   pthread_mutex_unlock
 

Typedefs

typedef int(* thread_lock) (TMCMutex *)
 
typedef int(* thread_unlock) (TMCMutex *)
 
typedef TMCImpMutexAutoLock TMCAutoLock
 
typedef pthread_mutex_t TMCMutex
 

Detailed Description

Definition of the TMCTemplateAutoLock and TMCImpMutexAutoLock classes.

Author
I. Hrivnacova; IPN Orsay

Definition in file TMCAutoLock.h.

Macro Definition Documentation

◆ TMCMULTITHREADED

#define TMCMULTITHREADED   1

Definition at line 87 of file TMCAutoLock.h.

◆ TMCMUTEX_INITIALIZER

#define TMCMUTEX_INITIALIZER   PTHREAD_MUTEX_INITIALIZER

Definition at line 93 of file TMCAutoLock.h.

◆ TMCMUTEXLOCK

#define TMCMUTEXLOCK   pthread_mutex_lock

Definition at line 94 of file TMCAutoLock.h.

◆ TMCMUTEXUNLOCK

#define TMCMUTEXUNLOCK   pthread_mutex_unlock

Definition at line 95 of file TMCAutoLock.h.

Typedef Documentation

◆ thread_lock

typedef int(* thread_lock) (TMCMutex *)

Definition at line 96 of file TMCAutoLock.h.

◆ thread_unlock

typedef int(* thread_unlock) (TMCMutex *)

Definition at line 97 of file TMCAutoLock.h.

◆ TMCAutoLock

Definition at line 158 of file TMCAutoLock.h.

◆ TMCMutex

typedef pthread_mutex_t TMCMutex

Definition at line 92 of file TMCAutoLock.h.