#include <qpset.h>
Public Member Functions | |
| uint8_t | isEmpty (void) volatile |
| the function evaluates to TRUE if the priority set is empty, which means that no active objects are ready to run. | |
| uint8_t | notEmpty (void) volatile |
| the function evaluates to TRUE if the priority set has elements, which means that some active objects are ready to run. | |
| uint8_t | hasElement (uint8_t n) volatile |
| the function evaluates to TRUE if the priority set has the element n. | |
| void | insert (uint8_t n) volatile |
| insert element n_ into the set, n_= 1..64 | |
| void | remove (uint8_t n) volatile |
| remove element n_ from the set, n_= 1..64 | |
| uint8_t | findMax (void) volatile |
| find the maximum element in the set, | |
The priority set represents the set of active objects that are ready to run and need to be considered by scheduling processing. The set is capable of storing up to 64 priority levels.
The priority set allows to build cooperative multitasking schedulers to manage up to 64 tasks. It is also used in the Quantum Kernel (QK) preemptive scheduler.
Definition at line 104 of file qpset.h.
| uint8_t QPSet64::findMax | ( | void | ) | volatile [inline] |
find the maximum element in the set,
Definition at line 170 of file qpset.h.
References Q_ROM_BYTE, and QF_log2Lkup.
Referenced by QF::run().
1.5.4