[][src]Function pspsdk_sys::sdk::sceKernelCreateThread

pub unsafe extern "C" fn sceKernelCreateThread(
    name: *const c_char,
    entry: SceKernelThreadEntry,
    initPriority: c_int,
    stackSize: c_int,
    attr: SceUInt,
    option: *mut SceKernelThreadOptParam
) -> SceUID

Create a thread

@par Example: @code SceUID thid; thid = sceKernelCreateThread("my_thread", threadFunc, 0x18, 0x10000, 0, NULL); @endcode

@param name - An arbitrary thread name. @param entry - The thread function to run when started. @param initPriority - The initial priority of the thread. Less if higher priority. @param stackSize - The size of the initial stack. @param attr - The thread attributes, zero or more of ::PspThreadAttributes. @param option - Additional options specified by ::SceKernelThreadOptParam.

@return UID of the created thread, or an error code.