furi_thread_alloc_ex

Function furi_thread_alloc_ex 

Source
pub unsafe extern "C" fn furi_thread_alloc_ex(
    name: *const c_char,
    stack_size: u32,
    callback: FuriThreadCallback,
    context: *mut c_void,
) -> *mut FuriThread
Expand description

Create a FuriThread instance w/ extra parameters.

§Arguments

  • name (direction in) - human-readable thread name (can be NULL)
  • stack_size (direction in) - stack size in bytes (can be changed later)
  • callback (direction in) - pointer to a function to be executed in this thread
  • context (direction in) - pointer to a user-specified object (will be passed to the callback)

§Returns

pointer to the created FuriThread instance