library of assembled shared sources |
http://lass.cocamware.com |
#include <thread.h>
Public Member Functions | |
Condition () | |
~Condition () | |
void | wait () |
const WaitResult | wait (unsigned long iMilliSeconds) |
void | signal () |
void | broadcast () |
Private Member Functions | |
void | swap (NonCopyable &) |
Private Attributes | |
impl::ConditionInternal * | pimpl_ |
A condition can be used to synchronize using messages were a condition waits for a signal or broadcast. A signal will only release one waiter, a broadcast will release all current waiting wait-conditions.
Definition at line 170 of file thread.h.
lass::util::Condition::Condition | ( | void | ) |
lass::util::Condition::~Condition | ( | void | ) |
void lass::util::Condition::wait | ( | ) |
Definition at line 175 of file thread.cpp.
References LASS_ASSERT, pimpl_, and lass::util::impl::ConditionInternal::wait().
Referenced by lass::io::BinaryOSocket::flusher(), lass::util::impl::CrashDumpImpl::handlerThread(), lass::util::impl::ThreadInternal::run(), lass::util::Signaled::sleepConsumer(), lass::util::Signaled::sleepProducer(), and lass::util::impl::CrashDumpImpl::unhandledExceptionFilter().
const WaitResult lass::util::Condition::wait | ( | unsigned long | iMilliSeconds | ) |
Definition at line 181 of file thread.cpp.
References LASS_ASSERT, pimpl_, and lass::util::impl::ConditionInternal::wait().
void lass::util::Condition::signal | ( | ) |
Definition at line 187 of file thread.cpp.
References LASS_ASSERT, pimpl_, and lass::util::impl::ConditionInternal::signal().
Referenced by lass::io::BinaryOSocket::doFlush(), lass::io::BinaryOSocket::doWrite(), lass::util::impl::CrashDumpImpl::handlerThread(), lass::util::impl::ThreadInternal::staticThreadStart(), lass::util::impl::CrashDumpImpl::unhandledExceptionFilter(), lass::util::Signaled::wakeConsumer(), lass::util::Signaled::wakeProducer(), lass::io::BinaryOSocket::~BinaryOSocket(), and lass::util::impl::CrashDumpImpl::~CrashDumpImpl().
void lass::util::Condition::broadcast | ( | ) |
Definition at line 193 of file thread.cpp.
References lass::util::impl::ConditionInternal::broadcast(), LASS_ASSERT, and pimpl_.
Referenced by lass::util::Signaled::wakeAllConsumers().
void lass::util::NonCopyable::swap | ( | NonCopyable & | ) | [inline, protected, inherited] |
Definition at line 180 of file thread.h.
Referenced by broadcast(), Condition(), signal(), wait(), and ~Condition().
Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by 1.5.7.1 |