1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXGetCurrentGXThread</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetCurrentGXThread</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20<dd><PRE><CODE>#include <revolution/gx.h></CODE></PRE></dd> 21<dd><pre><CODE>OSThread* GXGetCurrentGXThread ( void );</CODE></pre></dd> 22</dl><h2>Arguments</h2> 23 24<p>None.</p> 25 26<h2>Return Values</h2> 27 28<p>The current GX thread.</p> 29<H2>Description</H2> 30<P>This function will return the current GX thread; the thread that currently generates the graphics data. </P> 31<P>By default, the GX thread is the thread that invoked <code><a href="../Management/GXInit.html">GXInit</a></code>. However, it may be changed by calling <code><a href="GXSetCurrentGXThread.html">GXSetCurrentGXThread</a></code>.</P> 32<P>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 make the thread executable.</P> 33 34 35 36 37<h2>See Also</h2> 38 39<p><code><a href="../Management/GXInit.html">GXInit</a><a href="GXSetCurrentGXThread.html"><br> GXSetCurrentGXThread</a></code></p> 40 41<h2>Revision History</h2> 42<P>03/01/2006 Initial version.</P>