1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>GXWaitDrawDone</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GXWaitDrawDone</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">#include &lt;revolution/gx.h&gt;
15
16void GXWaitDrawDone( void )
17</pre></dd></dl>
18
19<H2>Arguments</H2>
20<P>None.</P>
21
22<H2>Return Values</H2>
23<P>None.</P>
24
25<H2>Description</H2>
26<P>This is a synchronization function. This function will wait (stall) until the <em>DrawDone</em> command set by the <a href="GXSetDrawDone.html"><code>GXSetDrawDone</code></a> function has been executed. This means that all graphics commands sent before this <em>DrawDone</em> command have executed and the last pixel has been written to the frame buffer. You might want to execute some non-graphics commands between executing <a href="GXSetDrawDone.html"><code>GXSetDrawDone</code></a> and <a href="GXWaitDrawDone.html"><code>GXWaitDrawDone</code></a>. But if you simply want to wait and have nothing to execute, you can use the <code><a href="GXDrawDone.html">GXDrawDone</a></code> function.</P>
27<P>This function is normally used in immediate-mode, see the <code><a href="../GfxFIFO/GXSetCPUFifo.html">GXSetCPUFifo</a></code> function.&nbsp;In multi-buffer mode, sending the '<em>done</em>' command is separated from polling the '<em>done</em>' status; see the <a href="GXSetDrawDone.html"><code>GXSetDrawDone</code></a> and <a href="GXWaitDrawDone.html"><code>GXWaitDrawDone</code></a> functions.</P>
28<P>This function may put the current thread to sleep. For precautions when calling similar functions, refer to <A href="../../os/Interrupt/intro.html">Interrupts and Callback Functions</A>.</P>
29
30<H2>See Also</H2>
31<P class="reference">
32<A href="GXFlush.html">GXFlush</A>, <A href="../../os/Interrupt/intro.html">Interrupts and Callback Functions</A>
33</P>
34
35<H2>Revision History</H2>
36<P>
372007/09/25 Added information on the sleep status of threads.<br>2006/03/01 Initial version.<br>
38</P>
39
40<hr><p>CONFIDENTIAL</p></body>
41</HTML>