Function signal_handler

Source
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