Added check for whether something is a reserved tag

This commit is contained in:
Tristan 🅱. Kildaire 2020-09-24 20:30:32 +02:00
parent 2960a8ec57
commit d46da412b4
1 changed files with 13 additions and 6 deletions

View File

@ -76,19 +76,26 @@ public final class Watcher : Thread
ulong requestPosition = manager.getTagPosition(receivedTag);
/**
* Check if the tag was found
*
* This only accounts for tags requested
*/
if(foundTag)
{
/* Fulfill the request */
currentQueue[requestPosition].fulfill(receivedMessage);
}
/**
* Check if the tag was reservd
*/
else if(manager.isReservedTag(receivedTag))
{
/* TODO: Implement me */
}
else
{
/* TODO: */
}
/* Unlock the queue */