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>OSSetThreadPriority</title> 10</head> 11 12<body> 13 14<h1>OSSetThreadPriority</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20BOOL OSSetThreadPriority(OSThread* thread, OSPriority priority); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>thread</TH> 27<TD>Pointer to thread for which to set priority.</TD> 28 </tr> 29 <tr> 30<TH><STRONG><EM><CODE>priority</CODE></EM></STRONG></TH> 31<TD>New thread base priority (highest = 0 and lowest = 31).</TD> 32 </tr> 33</TABLE> 34 35<h2>Return Values</h2> 36<p><code>TRUE</code> if the function succeeds. Otherwise, returns <code>FALSE</code> (because of an incorrect priority value).</p> 37 38<h2>Description</h2> 39<p>Sets the priority, which is the basis for scheduling, for the specified thread. Lower values correspond to higher priorities. The highest priority is 0. The lowest priority is 31.</p> 40 41<h2>See Also</h2> 42<P class="reference"> 43<A href="../toc.html#Thread" target="contents">Thread Functions</A>, 44<A href="../toc.html#ThreadSynchronization" target="contents">Thread Synchronization Functions</A>, 45<a href="OSCreateThread.html">OSCreateThread</a>, 46<a href="OSGetThreadPriority.html">OSGetThreadPriority</a> 47</p> 48 49<h2>Revision History</h2> 50<P> 512006/03/01 Initial version.<br> 52</p> 53 54<hr><p>CONFIDENTIAL</p></body> 55</html>