library of assembled shared sources |
http://lass.cocamware.com |
Public Member Functions | |
ConditionInternal () | |
~ConditionInternal () | |
void | wait () |
const WaitResult | wait (unsigned long iMilliSeconds) |
void | signal () |
void | broadcast () |
ConditionInternal () | |
~ConditionInternal () | |
void | wait () |
const WaitResult | wait (unsigned long iMilliSeconds) |
void | signal () |
void | broadcast () |
Private Member Functions | |
void | swap (NonCopyable &) |
Private Attributes | |
pthread_mutex_t | mutex_ |
pthread_cond_t | condition_ |
unsigned | threadsWaiting_ |
bool | signalFlag_ |
bool | broadcastFlag_ |
HANDLE | event_ |
LONG | threadsWaiting_ |
Definition at line 163 of file thread_posix.inl.
lass::util::impl::ConditionInternal::ConditionInternal | ( | ) | [inline] |
Definition at line 166 of file thread_posix.inl.
References condition_, LASS_ENFORCE_CLIB_RC, and mutex_.
lass::util::impl::ConditionInternal::~ConditionInternal | ( | ) | [inline] |
Definition at line 174 of file thread_posix.inl.
References condition_, LASS_WARN_CLIB_RC, and mutex_.
lass::util::impl::ConditionInternal::ConditionInternal | ( | ) | [inline] |
lass::util::impl::ConditionInternal::~ConditionInternal | ( | ) | [inline] |
Definition at line 251 of file thread_win32.inl.
References lass::io::cerr(), event_, and LASS_ASSERT.
void lass::util::impl::ConditionInternal::wait | ( | ) | [inline] |
Definition at line 179 of file thread_posix.inl.
References broadcastFlag_, condition_, LASS_ASSERT, LASS_ENFORCE_CLIB_RC, lass::util::impl::lass_strerror(), LASS_THROW, mutex_, signalFlag_, and threadsWaiting_.
Referenced by wait(), and lass::util::Condition::wait().
const WaitResult lass::util::impl::ConditionInternal::wait | ( | unsigned long | iMilliSeconds | ) | [inline] |
Definition at line 207 of file thread_posix.inl.
References broadcastFlag_, condition_, LASS_ASSERT, LASS_ENFORCE_CLIB_RC, lass::util::impl::lass_strerror(), LASS_THROW, mutex_, signalFlag_, threadsWaiting_, lass::util::waitSuccess, and lass::util::waitTimeout.
void lass::util::impl::ConditionInternal::signal | ( | ) | [inline] |
Definition at line 251 of file thread_posix.inl.
References condition_, LASS_ENFORCE_CLIB_RC, mutex_, and signalFlag_.
Referenced by broadcast(), and lass::util::Condition::signal().
void lass::util::impl::ConditionInternal::broadcast | ( | ) | [inline] |
Definition at line 258 of file thread_posix.inl.
References condition_, LASS_ENFORCE_CLIB_RC, mutex_, and signalFlag_.
Referenced by lass::util::Condition::broadcast().
void lass::util::impl::ConditionInternal::wait | ( | ) | [inline] |
const WaitResult lass::util::impl::ConditionInternal::wait | ( | unsigned long | iMilliSeconds | ) | [inline] |
Definition at line 267 of file thread_win32.inl.
References event_, LASS_THROW, threadsWaiting_, lass::util::waitSuccess, and lass::util::waitTimeout.
void lass::util::impl::ConditionInternal::signal | ( | ) | [inline] |
void lass::util::impl::ConditionInternal::broadcast | ( | ) | [inline] |
void lass::util::NonCopyable::swap | ( | NonCopyable & | ) | [inline, protected, inherited] |
pthread_mutex_t lass::util::impl::ConditionInternal::mutex_ [private] |
Definition at line 266 of file thread_posix.inl.
Referenced by broadcast(), ConditionInternal(), signal(), wait(), and ~ConditionInternal().
pthread_cond_t lass::util::impl::ConditionInternal::condition_ [private] |
Definition at line 267 of file thread_posix.inl.
Referenced by broadcast(), ConditionInternal(), signal(), wait(), and ~ConditionInternal().
unsigned lass::util::impl::ConditionInternal::threadsWaiting_ [private] |
bool lass::util::impl::ConditionInternal::signalFlag_ [private] |
bool lass::util::impl::ConditionInternal::broadcastFlag_ [private] |
HANDLE lass::util::impl::ConditionInternal::event_ [private] |
Definition at line 317 of file thread_win32.inl.
Referenced by ConditionInternal(), signal(), wait(), and ~ConditionInternal().
LONG lass::util::impl::ConditionInternal::threadsWaiting_ [private] |
Definition at line 318 of file thread_win32.inl.
Generated on Mon Nov 10 14:22:20 2008 for Library of Assembled Shared Sources by ![]() |