Ashet OS

syscall: ashet.process.thread.spawn

Documentation

Spawns a new thread with function passing arg to it. If stack_size is not 0, will create a stack with the given size.

Inputs

function: process.thread.ThreadFunction
arg: ?anyptr
stack_size: usize

Outputs

thread: Thread

Errors

SystemResources