pub unsafe extern "C" fn aws_thread_launch(
    thread: *mut aws_thread,
    func: Option<unsafe extern "C" fn(arg: *mut c_void)>,
    arg: *mut c_void,
    options: *const aws_thread_options
) -> c_int
Expand description

Creates an OS level thread and associates it with func. context will be passed to func when it is executed. options will be applied to the thread if they are applicable for the platform.

After launch, you may join on the thread. A successfully launched thread must have clean_up called on it in order to avoid a handle leak. If you do not join before calling clean_up, the thread will become detached.

Managed threads must not have join or clean_up called on them by external code.