Added comments, Added descPool

This commit is contained in:
Tristan B. Velloza Kildaire 2022-01-16 18:11:34 +02:00
parent bd5179ee3d
commit 826f110b17
1 changed files with 13 additions and 2 deletions

View File

@ -84,9 +84,17 @@ public final class JobException : TaskyException
*/
public abstract class Descriptor : Signal
{
/**
* Descriptor ID reservation sub-system
*/
private static __gshared Mutex descQueueLock;
private static __gshared DList!(ulong) descQueue;
/**
* All descriptors (pool)
*/
private static __gshared DList!(Descriptor) descPool;
/**
* Descriptor data
*
@ -269,11 +277,14 @@ public abstract class Descriptor : Signal
{
this()
{
handler(null);
}
public override void handler(Event) {}
public override void handler(Event e)
{
writeln("Event id ", e.id);
}
}