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