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=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>OSSleepSeconds</title>
10</head>
11
12<body>
13
14<h1>OSSleepSeconds</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><code>#include &lt;revolution/os.h&gt;</code></pre>
21  </dd>
22  <dd><pre><code>void OSSleepTicks ( OSTime ticks );</code></pre>
23  </dd>
24  <dd><pre><code>#define OSSleepSeconds( sec )    OSSleepTicks( OSSecondsToTicks(sec) )</code></pre>
25  </dd>
26</dl>
27
28<h2>Arguments</h2>
29<TABLE border="1" cellpadding="3" cellspacing="0.1">
30  <tr>
31      <TD width="120" bgcolor="#ffffe8"><i><b><code>sec</code></b></i></TD>
32      <TD width="520">The time (in seconds) for which to pause the current thread</TD>
33    </tr>
34</TABLE>
35<h2>Return Values</h2>
36
37<p>None.</p>
38
39<h2>Description</h2>
40
41<p>Pauses the current thread and returns it to an executable state after the number of seconds specified in <EM><STRONG><CODE>sec</CODE></STRONG></EM> has elapsed. The timing with which the thread will actually restart will vary based on the state of other threads and interrupt processes.</p>
42<p><B>Note: </B>If calling the <code>OSCancelThread</code> function while the <code>OSSleepSeconds</code> function is running, call it after calling the <code>OSCancelAlarms</code> function with the <code>OSThread</code> pointer as a tag.</p>
43
44
45<h2>See Also</h2>
46
47<p><A href="../toc.html#Thread" target="contents">Thread Synchronization</A>, <A href="../toc.html#ThreadSynchronization" target="contents">Thread Synchronization Functions</A>,<br> <a href="OSSleepTicks.html"><code>OSSleepTicks</code></a><BR> <a href="OSSleepMilliseconds.html"><code>OSSleepMilliseconds</code></a><BR> <a href="OSSleepMicroseconds.html"><code>OSSleepMicroseconds</code></a><BR> <a href="OSSleepNanoseconds.html"><code>OSSleepNanoseconds</code></a><BR> <a href="OSCancelThread.html"><code>OSCancelThread</code></a><BR> <a href="../Alarm/OSCancelAlarms.html"><code>OSCancelAlarms</code></a></p>
48
49<h2>Revision History</h2><p></p>
50<P>2007/12/11 Added notes. <br> 2006/08/11 Initial version.</p>
51
52<hr><p>CONFIDENTIAL</p></body>
53</html>