Fixed use of the Ranges, I recall how it works now

This commit is contained in:
Tristan B. Velloza Kildaire 2021-09-01 15:33:07 +02:00
parent 3a2637605a
commit 972a12efed
1 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,11 @@ public final class Queue
queueLock = new Mutex(); queueLock = new Mutex();
} }
public DList!(Event).Range getKak()
{
return queue[];
}
public void add(Event e) public void add(Event e)
{ {
/* Lock the queue */ /* Lock the queue */
@ -60,7 +65,7 @@ public final class Queue
queueLock.lock(); queueLock.lock();
poppedEvent = (queue[]).front(); poppedEvent = (queue[]).front();
(queue[]).popFront(); queue.removeFront();
/* Unlock the queue */ /* Unlock the queue */
queueLock.unlock(); queueLock.unlock();