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="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_CalcThreadStatistics</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_CalcThreadStatistics <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD><CODE>#include &lt;nitro/os.h&gt;</CODE><BR>
15  <BR>
16  <CODE>void OS_CalcThreadStatistics( void* statBuf, OSThread* thread );</CODE>
17</DL>
18<H2>Arguments</H2>
19<TABLE border="1" width="100%">
20  <TBODY>
21    <TR>
22      <TD width="13%"><EM><STRONG>statBuf</STRONG></EM></TD>
23      <TD width="87%">Function cost statistics buffer</TD>
24    </TR>
25    <TR>
26      <TD><B><I>thread</I></B></TD>
27      <TD>The thread that maintains the function cost calculation buffer that is used for accumulation.</TD>
28    </TR>
29  </TBODY>
30</TABLE>
31<H2>Return Values</H2>
32<P>None.</P>
33<H2>Description</H2>
34<P>This function accumulates function cost calculation data in a specified function cost statistics buffer.</P>
35<P>You must initialize <CODE>statBuf</CODE> with <CODE><A href="OS_InitStatistics.html">OS_InitStatistics()</A></CODE>. You can also append to previously accumulated results. The function cost calculation buffer that is used to accumulate is declared by the thread that is specified by <B><I>thread</I></B>. However, avoid doing this when, for example, another thread is writing to the buffer.</P>
36<P>If this function is compiled for debugging, it will function properly. However, if compiled for the final ROM version (<CODE>FINALROM</CODE>) library, it will not do anything.</P>
37<H2>See Also</H2>
38<P><CODE><A href="OS_InitStatistics.html">OS_InitStatistics</A>, <A href="OS_CalcStatistics.html">OS_CalcStatistics</A><BR></CODE></P>
39<H2>Revision History</H2>
40<P>2004/05/18 Initial version.</P>
41<hr><p>CONFIDENTIAL</p></body>
42</HTML>