Finalised

This commit is contained in:
Tristan B. Kildaire 2020-06-23 01:07:17 +02:00
parent e0c563ce68
commit b75b11e2b0
1 changed files with 8 additions and 3 deletions

View File

@ -73,8 +73,14 @@ public final class Manager
/* Create a new Request */
Request newRequest = new Request(tag);
/* Lock the queue for reading */
lockQueue();
/* Add the request to the request queue */
enqueue(newRequest);
requestQueue ~= newRequest;
/* Unlock the queue */
unlockQueue();
}
public bool isValidTag(ulong tag)
@ -128,8 +134,7 @@ public final class Manager
public Request[] getQueue()
{
/* TODO: Implement me */
return [];
return requestQueue;
}
public void enqueue(Request request)