mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 13:43:19 +02:00
Receiver
- 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:
parent
395c881f84
commit
b4338aa3ed
@ -244,5 +244,8 @@ public final class ReceiverThread : Thread
|
|||||||
// TODO: See above notes about libsnooze behaviour due
|
// TODO: See above notes about libsnooze behaviour due
|
||||||
// ... to usage in our context
|
// ... to usage in our context
|
||||||
receiveEvent.notifyAll();
|
receiveEvent.notifyAll();
|
||||||
|
|
||||||
|
// Wait on the manager thread to end
|
||||||
|
join();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -149,5 +149,8 @@ public final class SenderThread : Thread
|
|||||||
// TODO: See above notes about libsnooze behaviour due
|
// TODO: See above notes about libsnooze behaviour due
|
||||||
// ... to usage in our context
|
// ... to usage in our context
|
||||||
sendEvent.notifyAll();
|
sendEvent.notifyAll();
|
||||||
|
|
||||||
|
// Wait on the manager thread to end
|
||||||
|
join();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user