library of assembled shared sources

http://lass.cocamware.com

lass::util::impl::ConditionInternal Class Reference

Inheritance diagram for lass::util::impl::ConditionInternal:

Inheritance graph
[legend]
Collaboration diagram for lass::util::impl::ConditionInternal:

Collaboration graph
[legend]

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_

Detailed Description

Definition at line 163 of file thread_posix.inl.


Constructor & Destructor Documentation

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]

Definition at line 241 of file thread_win32.inl.

References event_.

lass::util::impl::ConditionInternal::~ConditionInternal (  )  [inline]

Definition at line 251 of file thread_win32.inl.

References lass::io::cerr(), event_, and LASS_ASSERT.


Member Function Documentation

void lass::util::impl::ConditionInternal::wait (  )  [inline]

const WaitResult lass::util::impl::ConditionInternal::wait ( unsigned long  iMilliSeconds  )  [inline]

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]

Definition at line 263 of file thread_win32.inl.

References wait().

const WaitResult lass::util::impl::ConditionInternal::wait ( unsigned long  iMilliSeconds  )  [inline]

void lass::util::impl::ConditionInternal::signal (  )  [inline]

Definition at line 294 of file thread_win32.inl.

References event_.

void lass::util::impl::ConditionInternal::broadcast (  )  [inline]

Definition at line 303 of file thread_win32.inl.

References signal(), and threadsWaiting_.

void lass::util::NonCopyable::swap ( NonCopyable  )  [inline, protected, inherited]

Definition at line 60 of file non_copyable.h.

Referenced by lass::io::Image::readLine().


Field Documentation

Definition at line 266 of file thread_posix.inl.

Referenced by broadcast(), ConditionInternal(), signal(), wait(), and ~ConditionInternal().

Definition at line 267 of file thread_posix.inl.

Referenced by broadcast(), ConditionInternal(), signal(), wait(), and ~ConditionInternal().

Definition at line 268 of file thread_posix.inl.

Referenced by broadcast(), and wait().

Definition at line 269 of file thread_posix.inl.

Referenced by broadcast(), signal(), and wait().

Definition at line 270 of file thread_posix.inl.

Referenced by wait().

Definition at line 317 of file thread_win32.inl.

Referenced by ConditionInternal(), signal(), wait(), and ~ConditionInternal().

Definition at line 318 of file thread_win32.inl.


The documentation for this class was generated from the following files:

Generated on Mon Nov 10 14:22:20 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo