mirror of https://github.com/deavmi/tasky.git
Make TaskyEvent accessible at the module level
This commit is contained in:
parent
246adcc1f9
commit
726ad57706
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue