Trait StartThread

Source
pub trait StartThread {
    // Required method
    fn start_thread(
        &mut self,
        function: fn(arg: *mut c_void) -> c_void,
        arg: *mut c_void,
    );
}

Required Methods§

Source

fn start_thread( &mut self, function: fn(arg: *mut c_void) -> c_void, arg: *mut c_void, )

| Start a new thread, invoking “function(arg)” | within the new thread. | | When “function(arg)” returns, the thread will | be destroyed.

Implementors§