Skip to content

Data type: Priority Queue Instance Attributes - v1.0

This data type is used to store the instance data of the function _priorityQueue.

ParameterTypeInitial ValueDescription
lengthDint0Current length of the queue
totalDint0Total/maximum length of the queue
isEmptyBool11= The queue is empty
isFullBool01= The queue is full
isInitializedBool01= The queue is initialized and ready to work
priorityModeBool00= The highest priority is the highest number
1= The highest priority is the lowest number
mutexBool0Used to lock or enable access to the queue (user defines the rules)
protectedStruct-Protected data
ParameterTypeInitial ValueDescription
freeSlotsDInt00 to total-1= Free slots
nextSlotIndexDInt00 to total= Index of the next slot