csound::ThreadLock Class Reference

#include <System.hpp>


Detailed Description

Encapsulates a thread monitor, such as a Windows event handle.

Public Member Functions

 ThreadLock ()
virtual ~ThreadLock ()
virtual void open ()
virtual void close ()
virtual bool isOpen ()
virtual void startWait (size_t timeoutMilliseconds=0)
virtual void endWait ()

Private Attributes

void * lock

Constructor & Destructor Documentation

csound::ThreadLock::ThreadLock (  ) 

virtual csound::ThreadLock::~ThreadLock (  )  [virtual]


Member Function Documentation

virtual void csound::ThreadLock::open (  )  [virtual]

Creates and initializes the monitor. The monitor is in a non-notified or unsignaled state.

virtual void csound::ThreadLock::close (  )  [virtual]

Destroys the monitor.

virtual bool csound::ThreadLock::isOpen (  )  [virtual]

Returns whether the monitor is open.

virtual void csound::ThreadLock::startWait ( size_t  timeoutMilliseconds = 0  )  [virtual]

Waits until the monitor is notified by another thread. Zero timeout means infinite timeout.

virtual void csound::ThreadLock::endWait (  )  [virtual]

Releases one thread that is waiting on the monitor.


Field Documentation

void* csound::ThreadLock::lock [private]


Generated on Sun Nov 9 00:25:05 2008 for Csound and CsoundAC by  doxygen 1.5.6