From ccff4017d6fc329b091d8429b0802a06e8399da3 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Wed, 8 Mar 2023 17:40:22 +0200 Subject: [PATCH] Receiver - Added a field of type `Event` to hold a libsnooze object representing when a new message has been received and is to be processed Sender - Added a field of type `Event` to hold a libsnooze object representing when a new message is to be sent and is to be processed --- source/birchwood/client/receiver.d | 7 ++++++- source/birchwood/client/sender.d | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/source/birchwood/client/receiver.d b/source/birchwood/client/receiver.d index ae123e8..c4573f4 100644 --- a/source/birchwood/client/receiver.d +++ b/source/birchwood/client/receiver.d @@ -8,5 +8,10 @@ import libsnooze; public final class ReceiverThread : Thread { - + /** + * The libsnooze event to await on which + * when we wake up signals a new message + * to be processed and received + */ + private Event receiveEvent; } \ No newline at end of file diff --git a/source/birchwood/client/sender.d b/source/birchwood/client/sender.d index 212b2d9..17b4b86 100644 --- a/source/birchwood/client/sender.d +++ b/source/birchwood/client/sender.d @@ -8,5 +8,10 @@ import libsnooze; public final class SenderThread : Thread { - + /** + * The libsnooze event to await on which + * when we wake up signals a new message + * to be processed and sent + */ + private Event receiveEvent; } \ No newline at end of file