1#ifndef RENSSELAERMOTORSPORT_PRIORITYQUEUE_H
2#define RENSSELAERMOTORSPORT_PRIORITYQUEUE_H
bool PQPeek(PriorityQueue *pq, Task *task)
Peeks at the highest priority task in the priority queue without removing it.
bool PQIsEmpty(PriorityQueue *pq)
Checks if the priority queue is empty.
bool PQIsFull(PriorityQueue *pq)
Checks if the priority queue is full.
bool PQPop(PriorityQueue *pq, Task *task)
Pops the highest priority task from the priority queue.
bool PQPush(PriorityQueue *pq, Task task, int priority)
Pushes a task with a given priority onto the priority queue.
void PQInit(PriorityQueue *pq)
Initializes the priority queue.