furi_event_loop_alloc

Function furi_event_loop_alloc 

Source
pub unsafe extern "C" fn furi_event_loop_alloc() -> *mut FuriEventLoop
Expand description

Allocate Event Loop instance

Couple things to keep in mind:

  • You can have 1 event_loop per 1 thread
  • You can not use event_loop instance in the other thread
  • Do not use blocking API to query object delegated to Event Loop

ยงReturns

The Event Loop instance