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.ThreadFunctionarg: ?anyptrstack_size: usize
Outputs
thread: Thread
Errors
SystemResources