12 #ifndef TMCAUTOLOCK_HH 13 #define TMCAUTOLOCK_HH 87 #define TMCMULTITHREADED 1 89 #if defined(TMCMULTITHREADED) 93 #define TMCMUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER 94 #define TMCMUTEXLOCK pthread_mutex_lock 95 #define TMCMUTEXUNLOCK pthread_mutex_unlock 100 #define TMCMUTEX_INITIALIZER 1 101 #define TMCMUTEXLOCK fake_mutex_lock_unlock 102 #define TMCMUTEXUNLOCK fake_mutex_lock_unlock 114 template <
class M,
typename L,
typename U>
160 #endif // TMCAUTOLOCK_HH
Template classe which provides a mechanism to create a mutex and locks/unlocks it.
RooArgList L(const RooAbsArg &v1)
TMCImpMutexAutoLock TMCAutoLock
virtual ~TMCTemplateAutoLock()
TMCImpMutexAutoLock(TMCMutex *mtx)
int(* thread_lock)(TMCMutex *)
int(* thread_unlock)(TMCMutex *)
Realization of TMCTemplateAutoLock with TMCMutex.
TMCTemplateAutoLock & operator=(const TMCTemplateAutoLock &rhs)
TMCTemplateAutoLock(M *mtx, L l, U u)