furi_event_loop_subscribe_mutex

Function furi_event_loop_subscribe_mutex 

Source
pub unsafe extern "C" fn furi_event_loop_subscribe_mutex(
    instance: *mut FuriEventLoop,
    mutex: *mut FuriMutex,
    event: FuriEventLoopEvent,
    callback: FuriEventLoopEventCallback,
    context: *mut c_void,
)
Expand description

Subscribe to mutex events

you can only have one subscription for one event type.

ยงArguments

  • instance - The Event Loop instance
  • mutex - The mutex to add
  • event (direction in) - The Event Loop event to trigger on
  • callback (direction in) - The callback to call on event
  • context - The context for callback