88#define TMCMULTITHREADED 1
91#if defined(TMCMULTITHREADED)
95#define TMCMUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
96#define TMCMUTEXLOCK pthread_mutex_lock
97#define TMCMUTEXUNLOCK pthread_mutex_unlock
103#define TMCMUTEX_INITIALIZER 1
104#define TMCMUTEXLOCK fake_mutex_lock_unlock
105#define TMCMUTEXUNLOCK fake_mutex_lock_unlock
117template <
class M,
typename L,
typename U>
int fake_mutex_lock_unlock(TMCMutex *)
int(* TMCthread_lock)(TMCMutex *)
int(* TMCthread_unlock)(TMCMutex *)
TMCImpMutexAutoLock TMCAutoLock
Template classe which provides a mechanism to create a mutex and locks/unlocks it.
TMCTemplateAutoLock(const TMCTemplateAutoLock &rhs)
virtual ~TMCTemplateAutoLock()
TMCTemplateAutoLock & operator=(const TMCTemplateAutoLock &rhs)
TMCTemplateAutoLock(M *mtx, L l, U u)
static constexpr double L
Realization of TMCTemplateAutoLock with TMCMutex.
TMCImpMutexAutoLock(TMCMutex *mtx)