THREAD_STATUS

Purpose

thread_status returns the status of a thread. 

Synopsis

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

int thread_status(Capability *thread, Thread_Status *status); 

Parameters

Description

thread_status returns the status of the thread designated by thread. 

Return Values

On success, thread_status returns 0 and status contains information about the current thread status. 

On fail, thread_status returns a negative value indicating one of the following errors: 

See Also

thread_create, thread_destroy, thread_self, thread_exit, thread_wait, thread_priority, thread_suspend, thread_resume, thread_sleep, thre