From 6cfaa9824ee0bc1ff8591ae306b8e7fd1ec4405d Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 26 Nov 2022 17:37:38 +0200 Subject: [PATCH] Added missing comments --- source/eventy/engine.d | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/source/eventy/engine.d b/source/eventy/engine.d index 05d7610..aa98585 100644 --- a/source/eventy/engine.d +++ b/source/eventy/engine.d @@ -136,22 +136,32 @@ unittest public final class Engine : Thread { /* TODO: Or use a queue data structure */ + /* Registered queues */ private DList!(Queue) queues; private Mutex queueLock; /* TODO: Or use a queue data structure */ + /* Registered signal handlers */ private DList!(Signal) handlers; private Mutex handlerLock; - /* Engine configuration */ private EngineSettings settings; + /* Whether engine is running or not */ private bool running; + /* Dispatched threads */ private DList!(DispatchWrapper) threadStore; private Mutex threadStoreLock; + /** + * Instantiates a new Eventy engine with the provided + * configuration + * + * Params: + * settings = The EngineSettings to use + */ this(EngineSettings settings) { super(&run); @@ -162,7 +172,6 @@ public final class Engine : Thread this.settings = settings; } - /** * Instantiates a new Eventy engine with the default * settings