flipperzero_sys

Function furi_thread_join

Source
pub unsafe extern "C" fn furi_thread_join(
    thread: *mut FuriThread,
) -> bool
Expand description

Wait for a FuriThread to exit.

The thread callback function must return in order for the FuriThread instance to become joinable.

Use this method only when the CPU is not busy (i.e. when the Idle task receives control), otherwise it will wait forever.

§Arguments

  • thread (direction in) - pointer to the FuriThread instance to be joined

§Returns

always true