Added isSignalExists(ulong id) to check whether a signal handler exists for a given event id

This commit is contained in:
Tristan B. Velloza Kildaire 2022-05-26 14:04:34 +02:00
parent 263188fa64
commit b67f61b848
1 changed files with 9 additions and 0 deletions

View File

@ -348,6 +348,15 @@ public final class Engine : Thread
return matchedHandlers;
}
/**
* Checks if there is a Signal that handles the given
* event ID
*/
public bool isSignalExists(ulong id)
{
return getSignalsForEvent(new Event(id)).length != 0;
}
/**
* push(Event e)
*