1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
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>VIWaitForRetrace</title>
10</head>
11
12<body>
13
14<h1 align="left">VIWaitForRetrace</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">#include &lt;revolution/vi.h&gt;
18
19void VIWaitForRetrace(void);
20</pre></dd></dl>
21
22<h2>Arguments</h2>
23<p>None.</p>
24
25<h2>Return Values</h2>
26<p>None.</p>
27
28<h2>Description</h2>
29<p>This function waits until the next vertical retrace interrupt occurs. If an idle function has been set, this function will be called.</p>
30<p>This function sometimes puts the current thread to sleep, so it cannot be called from callback functions. For precautions when calling similar functions, refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.</p>
31
32<h2>See Also</h2>
33<P class="reference">
34<a href="../os/Thread/OSGetIdleFunction.html">OSGetIdleFunction</a><BR> <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>
35</p>
36
37<h2>Revision History</h2>
38<P>
392007/09/25 Added information on the sleep status of threads.<br>2006/03/01 Initial version.<br>
40</p>
41
42<hr><p>CONFIDENTIAL</p></body>
43</html>