PrioritySemaphore Class Reference
#include <PrioritySemaphore.h>
Inheritance diagram for 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 () |
![]() | |
virtual | ~Lockable () |
Destroy a Lockable object. | |
virtual void | acquire ()=0 |
virtual bool | tryAcquire (unsigned long timeout)=0 |
virtual void | release ()=0 |
Detailed Description
- Date
- <2003-07-16T15:36:07-0400>
- Version
- 2.2.1
A PrioritySemaphore operates in the same way as a Semaphore. Its an owner-less Lockable object that is sensitive to priority.
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.
- See also
- Semaphore
Constructor & Destructor Documentation
◆ PrioritySemaphore()
PrioritySemaphore | ( | int | count = 1 , |
unsigned int | maxCount = 1 |
||
) |
◆ ~PrioritySemaphore()
|
virtual |
- See also
- Semaphore::~Semaphore()
Member Function Documentation
◆ acquire()
|
virtual |
- See also
- Semaphore::acquire()
Implements Lockable.
◆ count()
|
virtual |
- See also
- Semaphore::count()
◆ post()
void post | ( | ) |
- See also
- Semaphore::post()
◆ release()
|
virtual |
- See also
- Semaphore::release()
Implements Lockable.
◆ tryAcquire()
|
virtual |
Implements Lockable.
◆ tryWait()
bool tryWait | ( | unsigned long | ) |
◆ wait()
void wait | ( | ) |
- See also
- Semaphore::wait()
The documentation for this class was generated from the following file:
- PrioritySemaphore.h