@@ -16,15 +16,15 @@ pub trait NotificationHandler: Send {
1616 /// It does not need to be suitable for real-time execution.
1717 fn thread_init ( & self , _: & Client ) { }
1818
19- /// Called when the JACK server shuts down the client thread. The function
20- /// must be written as if
21- /// it were an asynchronous POSIX signal handler --- use only async-safe
22- /// functions, and remember
23- /// that it is executed from another thread. A typical funcion might set a
24- /// flag or write to a
25- /// pipe so that the rest of the application knows that the JACK client
26- /// thread has shut down .
27- fn shutdown ( & mut self , _status : ClientStatus , _reason : & str ) { }
19+ /// Called when the JACK server shuts down the client thread. The function must be written as if
20+ /// it were an asynchronous POSIX signal handler --- use only async-safe functions, and remember
21+ /// that it is executed from another thread. A typical funcion might set a flag or write to a
22+ /// pipe so that the rest of the application knows that the JACK client thread has shut down.
23+ ///
24+ /// # Safety
25+ /// See https://man7.org/linux/man-pages/man7/signal-safety.7.html for details about
26+ /// what is legal in an async-signal-safe callback .
27+ unsafe fn shutdown ( & mut self , _status : ClientStatus , _reason : & str ) { }
2828
2929 /// Called whenever "freewheel" mode is entered or leaving.
3030 fn freewheel ( & mut self , _: & Client , _is_freewheel_enabled : bool ) { }
0 commit comments