From 972a12efed1e6f9ed460f78252b0454c37fa6baf Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 1 Sep 2021 15:33:07 +0200 Subject: [PATCH] Fixed use of the Ranges, I recall how it works now --- source/eventy/queues.d | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/eventy/queues.d b/source/eventy/queues.d index 9ca7f31..de72426 100644 --- a/source/eventy/queues.d +++ b/source/eventy/queues.d @@ -26,6 +26,11 @@ public final class Queue queueLock = new Mutex(); } + public DList!(Event).Range getKak() + { + return queue[]; + } + public void add(Event e) { /* Lock the queue */ @@ -60,7 +65,7 @@ public final class Queue queueLock.lock(); poppedEvent = (queue[]).front(); - (queue[]).popFront(); + queue.removeFront(); /* Unlock the queue */ queueLock.unlock();