Thread_create

Function Thread_create 

Source
pub unsafe extern "C" fn Thread_create(
    function: ThreadExecutionFunction,
    parameter: *mut c_void,
    autodestroy: bool,
) -> Thread
Expand description

Create a new Thread instance

§Arguments

  • function - the entry point of the thread
  • parameter - a parameter that is passed to the threads start function
  • autodestroy - the thread is automatically destroyed if the ThreadExecutionFunction has finished.

§Returns

the newly created Thread instance