furi_thread_set_signal_callback

Function furi_thread_set_signal_callback 

Source
pub unsafe extern "C" fn furi_thread_set_signal_callback(
    thread: *mut FuriThread,
    callback: FuriThreadSignalCallback,
    context: *mut c_void,
)
Expand description

Set a signal handler callback for a FuriThread instance.

The thread MUST be stopped when calling this function if calling it from another thread.

ยงArguments

  • thread (direction in, out) - pointer to the FuriThread instance to be modified
  • callback (direction in) - pointer to a user-specified callback function
  • context (direction in) - pointer to a user-specified object (will be passed to the callback, can be NULL)