[−][src]Function sunrise_kernel::syscalls::create_thread
pub fn create_thread(
ip: usize,
arg: usize,
sp: usize,
_priority: u32,
_processor_id: u32
) -> Result<usize, UserspaceError>
Creates a thread in the current process. The thread can then be started with the svcStartThread.
Params
ipthe entry point of the thread,argthe initial argument of the thread (passed in eax),spthe top of the stack,priorityignored,processor_idignored,
Returns
A thread_handle to the created thread.