#include <PrioritySemaphore.h>
Inheritance diagram for ZThread::PrioritySemaphore:
Public Member Functions | |
PrioritySemaphore (int count=1, unsigned int maxCount=1) | |
virtual | ~PrioritySemaphore () |
void | wait () |
bool | tryWait (unsigned long) |
void | post () |
virtual int | count () |
virtual bool | tryAcquire (unsigned long timeout) |
virtual void | acquire () |
virtual void | release () |
Scheduling
Threads blocked on a PrioritySemaphore are resumed in priority order, highest priority first.
Error Checking
An attempt to increase a PrioritySemaphore beyond its maximum value will result in an InvalidOp_Exception.
ZThread::PrioritySemaphore::PrioritySemaphore | ( | int | count = 1 , |
|
unsigned int | maxCount = 1 | |||
) |
ZThread::PrioritySemaphore::~PrioritySemaphore | ( | ) | [virtual] |
void ZThread::PrioritySemaphore::acquire | ( | ) | [virtual] |
int ZThread::PrioritySemaphore::count | ( | ) | [virtual] |
void ZThread::PrioritySemaphore::post | ( | ) |
void ZThread::PrioritySemaphore::release | ( | ) | [virtual] |
bool ZThread::PrioritySemaphore::tryAcquire | ( | unsigned long | timeout | ) | [virtual] |
bool ZThread::PrioritySemaphore::tryWait | ( | unsigned | long | ) |
void ZThread::PrioritySemaphore::wait | ( | ) |