Finalised
This commit is contained in:
parent
e0c563ce68
commit
b75b11e2b0
|
@ -73,8 +73,14 @@ public final class Manager
|
||||||
/* Create a new Request */
|
/* Create a new Request */
|
||||||
Request newRequest = new Request(tag);
|
Request newRequest = new Request(tag);
|
||||||
|
|
||||||
|
/* Lock the queue for reading */
|
||||||
|
lockQueue();
|
||||||
|
|
||||||
/* Add the request to the request queue */
|
/* Add the request to the request queue */
|
||||||
enqueue(newRequest);
|
requestQueue ~= newRequest;
|
||||||
|
|
||||||
|
/* Unlock the queue */
|
||||||
|
unlockQueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isValidTag(ulong tag)
|
public bool isValidTag(ulong tag)
|
||||||
|
@ -128,8 +134,7 @@ public final class Manager
|
||||||
|
|
||||||
public Request[] getQueue()
|
public Request[] getQueue()
|
||||||
{
|
{
|
||||||
/* TODO: Implement me */
|
return requestQueue;
|
||||||
return [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void enqueue(Request request)
|
public void enqueue(Request request)
|
||||||
|
|
Loading…
Reference in New Issue