1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 11:22:53 +02:00
- Calling `end()` will now wait for the receiver's thread to stop

Sender

- Calling `end()` will now wait for the sender's thread to stop
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-27 19:54:02 +02:00
parent 395c881f84
commit b4338aa3ed
2 changed files with 6 additions and 0 deletions

View File

@ -244,5 +244,8 @@ public final class ReceiverThread : Thread
// TODO: See above notes about libsnooze behaviour due
// ... to usage in our context
receiveEvent.notifyAll();
// Wait on the manager thread to end
join();
}
}

View File

@ -149,5 +149,8 @@ public final class SenderThread : Thread
// TODO: See above notes about libsnooze behaviour due
// ... to usage in our context
sendEvent.notifyAll();
// Wait on the manager thread to end
join();
}
}