dharma crate provides high-level multi-threading support.
bridge module provides similar functionality as standard
spmc but instead of producing
Receiver it allows to connect them freely, so we can have many one
Sender sending to many
Receivers and one
Receiver listening to many senders in flexible,
On to of that we add
Signaler which can subscribe receivers for signals (application defined
events) creating notification mechanism.
On top of
Signaler we add
EventLoop, which is event queue assigned to thread.
Modules constituting separate application components.
Modules can be assigned
EventLoops in flexible way making it easy to control tasks processed in threads.
do not share memory and communicate with signals.
Every threading framework should provide mechanism for listening on system events.
allows to register
EventHandlers (wrapping file descriptors) and invokes them when system
events they are assigned are ready to be processed.
Last module contains helper code for and handling system signals.
Communication between two endpoints in different threads.
Handling system events (
Implementation of main thread loop with notification listening.
System signal handling.