adds a todo'
This commit is contained in:
@ -16,7 +16,7 @@ void init_queue(queue *q)
|
||||
bool queue_is_empty(queue *q)
|
||||
{
|
||||
bool empty = q->front == q->rear - 1;
|
||||
if (empty)
|
||||
if (empty) // This allows us to continuously reuse the queue when it empties. Ideally i'd like to switch to a heap implementation... TODO
|
||||
init_queue(q);
|
||||
return empty;
|
||||
}
|
||||
|
Reference in New Issue
Block a user