From 726ad57706f0b3c9d855cc53f9771730d683c173 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 24 May 2022 20:28:28 +0200 Subject: [PATCH] Make TaskyEvent accessible at the module level --- source/tasky/engine.d | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/source/tasky/engine.d b/source/tasky/engine.d index 9f7d986..cc55362 100644 --- a/source/tasky/engine.d +++ b/source/tasky/engine.d @@ -15,6 +15,22 @@ import std.socket : Socket; import core.thread : Thread, dur; import tasky.exceptions : SessionError; +public class TaskyEvent : Event +{ + private byte[] payload; + + this(ulong descID, byte[] payload) + { + super(descID); + this.payload = payload; + } + + public byte[] getPayload() + { + return payload; + } +} + public final class Engine : Thread { /** @@ -56,22 +72,6 @@ public final class Engine : Thread running = true; } - public class TaskyEvent : Event - { - private byte[] payload; - - this(ulong descID, byte[] payload) - { - super(descID); - this.payload = payload; - } - - public byte[] getPayload() - { - return payload; - } - } - /** * Worker thread function which checks the tristanable * queues for whichever has messages on them and then