ACE
6.3.3
|
An iterator over the OS-defined scheduling priorities. More...
#include <Sched_Params.h>
Public Member Functions | |
ACE_Sched_Priority_Iterator (const ACE_Sched_Params::Policy &policy, int scope=ACE_SCOPE_THREAD) | |
~ACE_Sched_Priority_Iterator (void) | |
Default dtor. More... | |
int | more (void) const |
Check if there are more priorities. More... | |
int | priority (void) const |
Return the current priority. More... | |
void | next (void) |
const ACE_Sched_Params::Policy & | policy (void) const |
Accessor for the scheduling policy over which we are iterating. More... | |
int | scope (void) const |
Accessor for the scheduling. More... | |
Private Attributes | |
ACE_Sched_Params::Policy | policy_ |
int | scope_ |
int | priority_ |
The current priority. More... | |
int | done_ |
An iterator over the OS-defined scheduling priorities.
The order of priorities (numeric value vs. importance) is OS dependant, it can be the case that the priorities are not even contigous. This class permits iteration over priorities using the iterator pattern.
|
inline |
Initialize the iterator, the arguments define the scheduling policy and scope for the priorities (see ACE_Sched_Param).
|
inline |
Default dtor.
|
inline |
Check if there are more priorities.
|
inline |
Move to the next priority. The iteration is from lowest to highest importance.
|
inline |
Accessor for the scheduling policy over which we are iterating.
|
inline |
Return the current priority.
|
inline |
Accessor for the scheduling.
|
private |
This is set to 1 when there are no more priorities. Cannot easily compare against the highest priority on platforms were priorities are non-contigous or descending.
|
private |
The Scheduling policy (FIFO, RR, etc.) and scheduling scope (PROCESS, SYSTEM) we are iterating on.
|
private |
The current priority.
|
private |