32 #define STRICT_LXRT_CHECKS 41 #ifdef STRICT_LXRT_CHECKS 44 PRINTF(
"MutexImplLxrt35::MutexImplLxrt35: Called from a Linux task!\n");
49 pthread_mutex_init_rt(
m_mutex, NULL);
54 #ifdef STRICT_LXRT_CHECKS 57 PRINTF(
"MutexImplLxrt35::~MutexImplLxrt35: Called from a Linux task!\n");
63 pthread_mutex_destroy_rt(
m_mutex);
71 #ifdef STRICT_LXRT_CHECKS 74 PRINTF(
"MutexImplLxrt35::lock: Called from a Linux task!\n");
78 return pthread_mutex_lock_rt(
m_mutex) == 0;
83 #ifdef STRICT_LXRT_CHECKS 86 PRINTF(
"MutexImplLxrt35::lock: Called from a Linux task!\n");
95 #ifdef STRICT_LXRT_CHECKS 98 PRINTF(
"MutexImplLxrt35::lock: Called from a Linux task!\n");
103 bool ret = (pthread_mutex_timedlock_rt(
m_mutex, & timeout_absolute_timespec) == 0);
109 #ifdef STRICT_LXRT_CHECKS 112 PRINTF(
"MutexImplLxrt35::tryLock: Called from a Linux task!\n");
116 bool ret = (pthread_mutex_trylock_rt(
m_mutex) == 0);
122 #ifdef STRICT_LXRT_CHECKS 125 PRINTF(
"MutexImplLxrt35::unlock: Called from a Linux task!\n");
129 pthread_mutex_unlock_rt(
m_mutex);
TimeStamp getAbsoluteTimeout(const TimeSpan &timeout_relative)
Represents absolute times.
Contains a system independet PRINTF macro.
Contains icl_core::thread::tMutex.
const TimeSpan timeout(1, 0)
Contains global LXRT functions.
Repesents absolute times.
pthread_mutex_t * m_mutex
Contains icl_core::thread::MutexImplLxrt35.
virtual ~MutexImplLxrt35()
struct timespec systemTimespec() const