Cleaned up `shutdown()` and added some TODOs

This commit is contained in:
Tristan B. Velloza Kildaire 2022-11-26 17:14:20 +02:00
parent e8b78156b7
commit be44514a51
1 changed files with 4 additions and 5 deletions

View File

@ -306,16 +306,15 @@ public final class Engine : Thread
}
/**
* Stops the engine
*
* TODO: Examine cases where this may not work
* TODO: Should we perhaps kill all other things
* i.e. stopping running threads
* Shuts down the event engine
*/
public void shutdown()
{
/* TODO: Insert a lock here, that dispatch should adhere too as well */
/* FIXME: We should prevent adding of queues during shutdown */
/* FIXME: We should prevent pushing of events during shutdown */
/* Wait for any pendings events (if configured) */
if(settings.gracefulShutdown)
{