38 #include "blocxx/BLOCXX_config.h"
76 m_impl.acquireReadLock(tid, timeout);
86 m_impl.releaseReadLock(tid);
105 m_impl.acquireWriteLock(tid, timeout);
115 m_impl.releaseWriteLock(tid);
void getReadLock(const Timeout &timeout)
#define BLOCXX_DEFINE_EXCEPTION_WITH_ID(NAME)
Define a new exception class named Exception that derives from Exception.
void getWriteLock(const Timeout &timeout)
static Timeout relative(float seconds)
A timeout can be absolute, which means that it will happen at the specified DateTime.
bool sameThreads(const volatile Thread_t &handle1, const volatile Thread_t &handle2)
Check two platform dependant thread types for equality.
GenericRWLockImpl< Thread_t, ThreadComparer > m_impl
bool operator()(Thread_t x, Thread_t y) const
#define BLOCXX_THROW_SUBEX(exType, msg, subex)
Throw an exception using FILE and LINE.