OSGetCurrentThread

Syntax

#include <revolution/os.h>

OSThread* OSGetCurrentThread(void);

Arguments

None.

Return Values

Pointer to the current thread.

Description

Gets the pointer to the current thread.

Note: If this function is called inside an exception handler or a callback function and there is an executing thread, a pointer to that thread is returned. If there is no executing thread, a null pointer is returned.

See Also

Thread Functions
Thread Synchronization Functions

Revision History

2009/02/19 Added a note about calling this function from inside an exception handler or callback function.
2007/03/xx Added a description of the behavior that occurs when invoked from an exception handler or a callback function.
2006/03/01 Initial version.


CONFIDENTIAL