Added missing comments

This commit is contained in:
Tristan B. Velloza Kildaire 2022-11-26 17:37:38 +02:00
parent 00b8eb82be
commit 6cfaa9824e
1 changed files with 11 additions and 2 deletions

View File

@ -136,22 +136,32 @@ unittest
public final class Engine : Thread public final class Engine : Thread
{ {
/* TODO: Or use a queue data structure */ /* TODO: Or use a queue data structure */
/* Registered queues */
private DList!(Queue) queues; private DList!(Queue) queues;
private Mutex queueLock; private Mutex queueLock;
/* TODO: Or use a queue data structure */ /* TODO: Or use a queue data structure */
/* Registered signal handlers */
private DList!(Signal) handlers; private DList!(Signal) handlers;
private Mutex handlerLock; private Mutex handlerLock;
/* Engine configuration */ /* Engine configuration */
private EngineSettings settings; private EngineSettings settings;
/* Whether engine is running or not */
private bool running; private bool running;
/* Dispatched threads */
private DList!(DispatchWrapper) threadStore; private DList!(DispatchWrapper) threadStore;
private Mutex threadStoreLock; private Mutex threadStoreLock;
/**
* Instantiates a new Eventy engine with the provided
* configuration
*
* Params:
* settings = The EngineSettings to use
*/
this(EngineSettings settings) this(EngineSettings settings)
{ {
super(&run); super(&run);
@ -162,7 +172,6 @@ public final class Engine : Thread
this.settings = settings; this.settings = settings;
} }
/** /**
* Instantiates a new Eventy engine with the default * Instantiates a new Eventy engine with the default
* settings * settings