mirror of https://github.com/deavmi/eventy.git
Cleaned up `shutdown()` and added some TODOs
This commit is contained in:
parent
e8b78156b7
commit
be44514a51
|
@ -306,16 +306,15 @@ public final class Engine : Thread
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stops the engine
|
* Shuts down the event engine
|
||||||
*
|
|
||||||
* TODO: Examine cases where this may not work
|
|
||||||
* TODO: Should we perhaps kill all other things
|
|
||||||
* i.e. stopping running threads
|
|
||||||
*/
|
*/
|
||||||
public void shutdown()
|
public void shutdown()
|
||||||
{
|
{
|
||||||
/* TODO: Insert a lock here, that dispatch should adhere too as well */
|
/* 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) */
|
/* Wait for any pendings events (if configured) */
|
||||||
if(settings.gracefulShutdown)
|
if(settings.gracefulShutdown)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue