52 return pthread_rwlock_rdlock(
m_rwlock) == 0;
58 #ifdef _SYSTEM_DARWIN_ 59 int ret = pthread_rwlock_tryrdlock(
m_rwlock);
64 ret = pthread_rwlock_tryrdlock(
m_rwlock);
68 struct timespec timeout_timespec = timeout.timespec();
69 int ret = pthread_rwlock_timedrdlock(
m_rwlock, &timeout_timespec);
82 bool ret = pthread_rwlock_tryrdlock(
m_rwlock);
88 return pthread_rwlock_wrlock(
m_rwlock) == 0;
94 #ifdef _SYSTEM_DARWIN_ 95 int ret = pthread_rwlock_trywrlock(
m_rwlock);
100 ret = pthread_rwlock_trywrlock(
m_rwlock);
104 struct timespec timeout_timespec = timeout.timespec();
105 bool ret = pthread_rwlock_timedwrlock(
m_rwlock, &timeout_timespec);
118 bool ret = pthread_rwlock_trywrlock(
m_rwlock);
TimeStamp getAbsoluteTimeout(const TimeSpan &timeout_relative)
pthread_rwlock_t * m_rwlock
virtual bool tryReadLock()
virtual bool tryWriteLock()
int usleep(unsigned long useconds)
Contains icl_core::thread::RWLockImplPosix.
Contains icl_core::thread::tMutex.
const TimeSpan timeout(1, 0)
Contains global functions for time manipulation, encapsulated into the icl_core::os namespace...
virtual ~RWLockImplPosix()