THREAD_SELF

Purpose

thread_self returns a owner capability for the current thread. 

Synopsis

#include <types.h> 
#include <stub.h> 

int thread_self(Capability *thread); 

Parameters

Description

thread_self selfs returns a owner capability for the current thread in thread. 

Return Values

thread_self always returns 0. 

See Also

thread_create, thread_destroy, thread_status, thread_exit, thread_wait 

Notes

This not really a thread service, but a kernel one.