[−][src]Function mmal_sys::vcos_thread_create_classic
pub unsafe extern "C" fn vcos_thread_create_classic(
thread: *mut VCOS_THREAD_T,
name: *const c_char,
entry: Option<unsafe extern "C" fn(arg: *mut c_void) -> *mut c_void>,
arg: *mut c_void,
stack: *mut c_void,
stacksz: VCOS_UNSIGNED,
priaff: VCOS_UNSIGNED,
timeslice: VCOS_UNSIGNED,
autostart: VCOS_UNSIGNED
) -> VCOS_STATUS_T
\brief Create a thread using an API similar to the one "traditionally" used under Nucleus.
This creates a thread which must be cleaned up by calling vcos_thread_join(). The thread cannot be simply terminated (as in Nucleus and ThreadX) as thread termination is not universally supported.
@param thread Filled in with thread instance @param name An optional name for the thread. NULL or "" may be used (but a name will aid in debugging). @param entry Entry point @param arg A single argument passed to the entry point function @param stack Pointer to stack address @param stacksz Size of stack in bytes @param priaff Priority of task, between VCOS_PRI_LOW and VCOS_PRI_HIGH, ORed with the CPU affinity @param autostart If non-zero the thread will start immediately. @param timeslice Timeslice (system ticks) for this thread.
@sa vcos_thread_terminate vcos_thread_delete