pub fn signal_handler(thread_control: Arc<Mutex<ThreadControl>>)
Expand description
Handle incoming POSIX signals and inform threads about the state.
Allows to terminate multithreaded application safevly when CTRL+C is pressed
pub fn signal_handler(thread_control: Arc<Mutex<ThreadControl>>)
Handle incoming POSIX signals and inform threads about the state.
Allows to terminate multithreaded application safevly when CTRL+C is pressed