From 8f8a1e724fb512b8b169cbb1e98310be6e064da6 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Thu, 19 May 2022 16:51:44 +0200 Subject: [PATCH] Added stub method for future usage along with comments related to it --- source/tasky/engine.d | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/tasky/engine.d b/source/tasky/engine.d index 69a3cde..830dcca 100644 --- a/source/tasky/engine.d +++ b/source/tasky/engine.d @@ -48,6 +48,22 @@ public final class Engine : Thread start(); } + /** + * Starts the Tasky engine + * + * FIXME: Pivot to using this + * FIXME: This code should be private and rather called at the beginning + * of `.start()` + */ + public void startTasky() + { + /* Start the event engine */ + //evEngine.start(); + + /* TODO: TManager should not start immediately either I guess */ + //tmanager.start(); + } + public class TaskyEvent : Event { private byte[] payload; @@ -270,12 +286,20 @@ public final class Engine : Thread Engine e = new Engine(clientSocket); + + /** + * Setup the job types that are wanted + */ e.registerDescriptor(jobType); e.registerDescriptor(jobType2); + /* TODO: Use this in future */ + // e.start(); + + /** * Await the expected result, but if this does not complete * within 4 seconds then expect it failed