ZThread::PriorityMutex Class Reference

#include <PriorityMutex.h>

Inheritance diagram for ZThread::PriorityMutex:

ZThread::Lockable ZThread::NonCopyable List of all members.

Public Member Functions

 PriorityMutex ()
virtual ~PriorityMutex ()
virtual void acquire ()
virtual bool tryAcquire (unsigned long timeout)
virtual void release ()

Detailed Description

Author:
Eric Crahen <http://www.code-foo.com>
Date:
<2003-07-16T17:35:46-0400>
Version:
2.2.1
A PriorityMutex is similar to a Mutex, with exception that a PriorityMutex has a difference scheduling policy. It is a non-reentrant, priority sensitive MUTual EXclusion Lockable object.

See also:
Mutex
Scheduling

Threads competing to acquire() a Mutex are granted access in order of priority. Threads with a higher priority will be given access first.


Constructor & Destructor Documentation

ZThread::PriorityMutex::PriorityMutex (  ) 

See also:
Mutex::Mutex()

ZThread::PriorityMutex::~PriorityMutex (  )  [virtual]

See also:
Mutex::~Mutex()


Member Function Documentation

void ZThread::PriorityMutex::acquire (  )  [virtual]

See also:
Mutex::acquire()

Implements ZThread::Lockable.

void ZThread::PriorityMutex::release (  )  [virtual]

See also:
Mutex::release()

Implements ZThread::Lockable.

bool ZThread::PriorityMutex::tryAcquire ( unsigned long  timeout  )  [virtual]

See also:
Mutex::tryAcquire(unsigned long timeout)

Implements ZThread::Lockable.


The documentation for this class was generated from the following files:
Generated on Wed Aug 30 03:27:48 2006 for SWG EMU by  doxygen 1.4.7