Skip to content

Commit

Permalink
Add safety section.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmedrano committed Sep 13, 2024
1 parent 39a3af9 commit 50b170e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ pub trait NotificationHandler: Send {
/// that it is executed from another thread. A typical funcion might set a flag or write to a
/// pipe so that the rest of the application knows that the JACK client thread has shut down.
///
/// # Safety
/// See https://man7.org/linux/man-pages/man7/signal-safety.7.html for details about
/// async-signal-safe.
/// what is legal in an async-signal-safe callback.
unsafe fn shutdown(&mut self, _status: ClientStatus, _reason: &str) {}

/// Called whenever "freewheel" mode is entered or leaving.
Expand Down

0 comments on commit 50b170e

Please sign in to comment.