Function cloudabi::thread_exit [] [src]

pub unsafe fn thread_exit(lock_: *mut lock, scope_: scope) -> !

Terminates the calling thread.

This system call can also unlock a single userspace lock after termination, which can be used to implement thread joining.

Parameters

lock: Userspace lock that is locked for writing by the calling thread.

scope: Whether the lock is stored in private or shared memory.