GXGetCurrentGXThread

Syntax

#include <revolution/gx.h>

OSThread* GXGetCurrentGXThread ( void );

Arguments

None.

Return Values

The current GX thread.

Description

This function will return the current GX thread. The current GX thread is currently generating graphics data.

By default, the GX thread is the thread that invokes the GXInit function. However, this may be changed by calling the GXSetCurrentGXThread function.

When graphics data is generated in immediate mode (that is, the CPU FIFO = GP FIFO, and the GP is actively consuming data), the high watermark may be triggered. When this happens, the high watermark interrupt handler will suspend the GX thread, preventing further graphics data from being generated. The low watermark interrupt handler will resume the thread.

See Also

GXInit, GXSetCurrentGXThread

Revision History

2006/03/01 Initial version.


CONFIDENTIAL