Function psp::sys::sceKernelCreateThread

source ·
#[no_mangle]
pub unsafe extern "C" fn sceKernelCreateThread(
    name: *const u8,
    entry: SceKernelThreadEntry,
    init_priority: i32,
    stack_size: i32,
    attr: ThreadAttributes,
    option: *mut SceKernelThreadOptParam
) -> SceUid
Expand description

Create a thread.

This function does not directly run a thread, it simply returns a thread ID which can be used as a handle to start the thread later. See sceKernelStartThread.

§Parameters

  • name: An arbitrary thread name.
  • entry: The thread function to run when started.
  • init_priority: The initial priority of the thread. Less if higher priority.
  • stack_size: The size of the initial stack.
  • attr: The thread attributes, zero or more of ThreadAttributes.
  • option: Additional options specified by SceKernelThreadOptParam.

§Return Value

UID of the created thread, or an error code.