aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/PxTask_8h-source.html
diff options
context:
space:
mode:
authorgit perforce import user <a@b>2016-10-25 12:29:14 -0600
committerSheikh Dawood Abdul Ajees <Sheikh Dawood Abdul Ajees>2016-10-25 18:56:37 -0500
commit3dfe2108cfab31ba3ee5527e217d0d8e99a51162 (patch)
treefa6485c169e50d7415a651bf838f5bcd0fd3bfbd /PhysX_3.4/Documentation/PhysXAPI/files/PxTask_8h-source.html
downloadphysx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.tar.xz
physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.zip
Initial commit:
PhysX 3.4.0 Update @ 21294896 APEX 1.4.0 Update @ 21275617 [CL 21300167]
Diffstat (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/PxTask_8h-source.html')
-rw-r--r--PhysX_3.4/Documentation/PhysXAPI/files/PxTask_8h-source.html262
1 files changed, 262 insertions, 0 deletions
diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxTask_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxTask_8h-source.html
new file mode 100644
index 00000000..31366808
--- /dev/null
+++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxTask_8h-source.html
@@ -0,0 +1,262 @@
+<html>
+ <head>
+ <title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxTask.h Source File</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
+ </head>
+
+ <body bgcolor="#FFFFFF">
+ <div id="header">
+ <hr class="first">
+ <img alt="" src="images/PhysXlogo.png" align="middle"> <br>
+ <center>
+ <a class="qindex" href="main.html">Main Page</a> &nbsp;
+ <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp;
+ <a class="qindex" href="annotated.html">Compound List</a> &nbsp;
+ <a class="qindex" href="functions.html">Compound Members</a> &nbsp;
+ </center>
+ <hr class="second">
+ </div>
+<!-- Generated by Doxygen 1.5.8 -->
+<h1>PxTask.h</h1><a href="PxTask_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This code contains NVIDIA Confidential Information and is disclosed to you</span>
+<a name="l00002"></a>00002 <span class="comment">// under a form of NVIDIA software license agreement provided separately to you.</span>
+<a name="l00003"></a>00003 <span class="comment">//</span>
+<a name="l00004"></a>00004 <span class="comment">// Notice</span>
+<a name="l00005"></a>00005 <span class="comment">// NVIDIA Corporation and its licensors retain all intellectual property and</span>
+<a name="l00006"></a>00006 <span class="comment">// proprietary rights in and to this software and related documentation and</span>
+<a name="l00007"></a>00007 <span class="comment">// any modifications thereto. Any use, reproduction, disclosure, or</span>
+<a name="l00008"></a>00008 <span class="comment">// distribution of this software and related documentation without an express</span>
+<a name="l00009"></a>00009 <span class="comment">// license agreement from NVIDIA Corporation is strictly prohibited.</span>
+<a name="l00010"></a>00010 <span class="comment">//</span>
+<a name="l00011"></a>00011 <span class="comment">// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES</span>
+<a name="l00012"></a>00012 <span class="comment">// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO</span>
+<a name="l00013"></a>00013 <span class="comment">// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,</span>
+<a name="l00014"></a>00014 <span class="comment">// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</span>
+<a name="l00015"></a>00015 <span class="comment">//</span>
+<a name="l00016"></a>00016 <span class="comment">// Information and code furnished is believed to be accurate and reliable.</span>
+<a name="l00017"></a>00017 <span class="comment">// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such</span>
+<a name="l00018"></a>00018 <span class="comment">// information or for any infringement of patents or other rights of third parties that may</span>
+<a name="l00019"></a>00019 <span class="comment">// result from its use. No license is granted by implication or otherwise under any patent</span>
+<a name="l00020"></a>00020 <span class="comment">// or patent rights of NVIDIA Corporation. Details are subject to change without notice.</span>
+<a name="l00021"></a>00021 <span class="comment">// This code supersedes and replaces all information previously supplied.</span>
+<a name="l00022"></a>00022 <span class="comment">// NVIDIA Corporation products are not authorized for use as critical</span>
+<a name="l00023"></a>00023 <span class="comment">// components in life support devices or systems without express written approval of</span>
+<a name="l00024"></a>00024 <span class="comment">// NVIDIA Corporation.</span>
+<a name="l00025"></a>00025 <span class="comment">//</span>
+<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2016 NVIDIA Corporation. All rights reserved.</span>
+<a name="l00027"></a>00027
+<a name="l00028"></a>00028 <span class="preprocessor">#ifndef PXTASK_PXTASK_H</span>
+<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define PXTASK_PXTASK_H</span>
+<a name="l00030"></a>00030 <span class="preprocessor"></span>
+<a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="PxTaskDefine_8h.html">task/PxTaskDefine.h</a>"</span>
+<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="PxTaskManager_8h.html">task/PxTaskManager.h</a>"</span>
+<a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="PxCpuDispatcher_8h.html">task/PxCpuDispatcher.h</a>"</span>
+<a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="PxGpuDispatcher_8h.html">task/PxGpuDispatcher.h</a>"</span>
+<a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="PxAssert_8h.html">foundation/PxAssert.h</a>"</span>
+<a name="l00036"></a>00036
+<a name="l00037"></a>00037 <span class="keyword">namespace </span>physx
+<a name="l00038"></a>00038 {
+<a name="l00039"></a>00039
+<a name="l00045"></a><a class="code" href="classphysx_1_1PxBaseTask.html">00045</a> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxBaseTask.html" title="Base class of all task types.">PxBaseTask</a>
+<a name="l00046"></a>00046 {
+<a name="l00047"></a>00047 <span class="keyword">public</span>:
+<a name="l00048"></a><a class="code" href="classphysx_1_1PxBaseTask.html#387b986ef3916322502452724d9ba582">00048</a> <a class="code" href="classphysx_1_1PxBaseTask.html#387b986ef3916322502452724d9ba582">PxBaseTask</a>() : <a class="code" href="classphysx_1_1PxBaseTask.html#9200c8e7b7680790e5e75da22c92e3cd" title="Registered profile event ID.">mEventID</a>(0xFFFF), <a class="code" href="classphysx_1_1PxBaseTask.html#859800d5acb01168c7fae071d8e86e26" title="Profiling statistic.">mProfileStat</a>(0), <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>(0) {}
+<a name="l00049"></a><a class="code" href="classphysx_1_1PxBaseTask.html#c3100494c97a23a88fcad8e28e222822">00049</a> <span class="keyword">virtual</span> <a class="code" href="classphysx_1_1PxBaseTask.html#c3100494c97a23a88fcad8e28e222822">~PxBaseTask</a>() {}
+<a name="l00050"></a>00050
+<a name="l00057"></a>00057 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxBaseTask.html#517a16d9dc630c9274a7564deb3a7e4a" title="The user-implemented run method where the task&amp;#39;s work should be performed.">run</a>() = 0;
+<a name="l00058"></a>00058
+<a name="l00066"></a>00066 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classphysx_1_1PxBaseTask.html#a54eb4a1b50979436a797a62e383efee" title="Return a user-provided task name for profiling purposes.">getName</a>() <span class="keyword">const</span> = 0;
+<a name="l00067"></a>00067
+<a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxBaseTask.html#07c9f6e71f0723bcf914fce51036d36e" title="Implemented by derived implementation classes.">addReference</a>() = 0;
+<a name="l00071"></a>00071 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxBaseTask.html#78f9b745c6fb4114350cb1a26f3461d3" title="Implemented by derived implementation classes.">removeReference</a>() = 0;
+<a name="l00073"></a>00073 <span class="keyword">virtual</span> int32_t <a class="code" href="classphysx_1_1PxBaseTask.html#5a1570309c62a12c3ecfe7e695b9f21f" title="Implemented by derived implementation classes.">getReference</a>() <span class="keyword">const</span> = 0;
+<a name="l00074"></a>00074
+<a name="l00082"></a>00082 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxBaseTask.html#3be62f992c1ff7218e2cf0fc0ba5b244" title="Implemented by derived implementation classes.">release</a>() = 0;
+<a name="l00083"></a>00083
+<a name="l00091"></a><a class="code" href="classphysx_1_1PxBaseTask.html#c5afbb44814fd220d9fa1f5ae407f21d">00091</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxBaseTask.html#c5afbb44814fd220d9fa1f5ae407f21d" title="Execute user run method with wrapping profiling events.">runProfiled</a>(uint32_t threadId=0)
+<a name="l00092"></a>00092 {
+<a name="l00093"></a>00093 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;emitStartEvent(*<span class="keyword">this</span>, threadId);
+<a name="l00094"></a>00094 <a class="code" href="classphysx_1_1PxBaseTask.html#517a16d9dc630c9274a7564deb3a7e4a" title="The user-implemented run method where the task&amp;#39;s work should be performed.">run</a>();
+<a name="l00095"></a>00095 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;emitStopEvent(*<span class="keyword">this</span>, threadId);
+<a name="l00096"></a>00096 }
+<a name="l00097"></a>00097
+<a name="l00106"></a><a class="code" href="classphysx_1_1PxBaseTask.html#0621abfb63132826ccd37421b9d8011f">00106</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxBaseTask.html#0621abfb63132826ccd37421b9d8011f" title="Specify stop event statistic.">setProfileStat</a>( uint16_t stat )
+<a name="l00107"></a>00107 {
+<a name="l00108"></a>00108 <a class="code" href="classphysx_1_1PxBaseTask.html#859800d5acb01168c7fae071d8e86e26" title="Profiling statistic.">mProfileStat</a> = stat;
+<a name="l00109"></a>00109 }
+<a name="l00110"></a>00110
+<a name="l00117"></a><a class="code" href="classphysx_1_1PxBaseTask.html#f33b34783821f4b8cc455df2e7f45bbe">00117</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classphysx_1_1PxTaskManager.html" title="The PxTaskManager interface.">PxTaskManager</a>* <a class="code" href="classphysx_1_1PxBaseTask.html#f33b34783821f4b8cc455df2e7f45bbe" title="Return PxTaskManager to which this task was submitted.">getTaskManager</a>()<span class="keyword"> const</span>
+<a name="l00118"></a>00118 <span class="keyword"> </span>{
+<a name="l00119"></a>00119 <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>;
+<a name="l00120"></a>00120 }
+<a name="l00121"></a>00121
+<a name="l00122"></a>00122 <span class="keyword">protected</span>:
+<a name="l00123"></a><a class="code" href="classphysx_1_1PxBaseTask.html#9200c8e7b7680790e5e75da22c92e3cd">00123</a> uint16_t <a class="code" href="classphysx_1_1PxBaseTask.html#9200c8e7b7680790e5e75da22c92e3cd" title="Registered profile event ID.">mEventID</a>;
+<a name="l00124"></a><a class="code" href="classphysx_1_1PxBaseTask.html#859800d5acb01168c7fae071d8e86e26">00124</a> uint16_t <a class="code" href="classphysx_1_1PxBaseTask.html#859800d5acb01168c7fae071d8e86e26" title="Profiling statistic.">mProfileStat</a>;
+<a name="l00125"></a><a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974">00125</a> <a class="code" href="classphysx_1_1PxTaskManager.html" title="The PxTaskManager interface.">PxTaskManager</a>* <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>;
+<a name="l00126"></a>00126
+<a name="l00127"></a><a class="code" href="classphysx_1_1PxBaseTask.html#c4a43ca8ae513a20c1d61bc9aecfce89">00127</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxBaseTask.html#c4a43ca8ae513a20c1d61bc9aecfce89">PxTaskMgr</a>;
+<a name="l00128"></a>00128 };
+<a name="l00129"></a>00129
+<a name="l00130"></a>00130
+<a name="l00137"></a><a class="code" href="classphysx_1_1PxTask.html">00137</a> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxTask.html" title="A PxBaseTask implementation with deferred execution and full dependencies.">PxTask</a> : <span class="keyword">public</span> <a class="code" href="classphysx_1_1PxBaseTask.html" title="Base class of all task types.">PxBaseTask</a>
+<a name="l00138"></a>00138 {
+<a name="l00139"></a>00139 <span class="keyword">public</span>:
+<a name="l00140"></a><a class="code" href="classphysx_1_1PxTask.html#01ed1f8968b3e631509c42994b10b5cd">00140</a> <a class="code" href="classphysx_1_1PxTask.html#01ed1f8968b3e631509c42994b10b5cd">PxTask</a>() : <a class="code" href="classphysx_1_1PxTask.html#a67264a3a16ca138fd854539bf52ac06" title="ID assigned at submission.">mTaskID</a>(0) {}
+<a name="l00141"></a><a class="code" href="classphysx_1_1PxTask.html#cde4da75284803e84d6cb20cda890223">00141</a> <span class="keyword">virtual</span> <a class="code" href="classphysx_1_1PxTask.html#cde4da75284803e84d6cb20cda890223">~PxTask</a>() {}
+<a name="l00142"></a>00142
+<a name="l00144"></a><a class="code" href="classphysx_1_1PxTask.html#cedcca7b8305c3ad519e537ab307c39a">00144</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#cedcca7b8305c3ad519e537ab307c39a" title="Release method implementation.">release</a>()
+<a name="l00145"></a>00145 {
+<a name="l00146"></a>00146 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>);
+<a name="l00147"></a>00147
+<a name="l00148"></a>00148 <span class="comment">// clear mTm before calling taskCompleted() for safety</span>
+<a name="l00149"></a>00149 <a class="code" href="classphysx_1_1PxTaskManager.html" title="The PxTaskManager interface.">PxTaskManager</a>* save = <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>;
+<a name="l00150"></a>00150 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a> = NULL;
+<a name="l00151"></a>00151 save-&gt;<a class="code" href="classphysx_1_1PxTaskManager.html#36a746ff81e26d57195ebfdd0141e912" title="Called by the worker threads to inform the PxTaskManager that a task has completed...">taskCompleted</a>( *<span class="keyword">this</span> );
+<a name="l00152"></a>00152 }
+<a name="l00153"></a>00153
+<a name="l00155"></a>00155 <span class="comment">// task is allowed to start.</span>
+<a name="l00156"></a><a class="code" href="classphysx_1_1PxTask.html#a417f4d080c31178ff6ded2c92b8bb05">00156</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#a417f4d080c31178ff6ded2c92b8bb05" title="Inform the PxTaskManager this task must finish before the given.">finishBefore</a>( <a class="code" href="namespacephysx.html#7a08e207472f32da1e024056f32d64a2">PxTaskID</a> taskID )
+<a name="l00157"></a>00157 {
+<a name="l00158"></a>00158 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>);
+<a name="l00159"></a>00159 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;finishBefore( *<span class="keyword">this</span>, taskID);
+<a name="l00160"></a>00160 }
+<a name="l00161"></a>00161
+<a name="l00163"></a>00163 <span class="comment">// task has completed.</span>
+<a name="l00164"></a><a class="code" href="classphysx_1_1PxTask.html#5ea294d819b903a507efe1358f86b8cd">00164</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#5ea294d819b903a507efe1358f86b8cd" title="Inform the PxTaskManager this task cannot start until the given.">startAfter</a>( <a class="code" href="namespacephysx.html#7a08e207472f32da1e024056f32d64a2">PxTaskID</a> taskID )
+<a name="l00165"></a>00165 {
+<a name="l00166"></a>00166 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>);
+<a name="l00167"></a>00167 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;startAfter( *<span class="keyword">this</span>, taskID );
+<a name="l00168"></a>00168 }
+<a name="l00169"></a>00169
+<a name="l00174"></a><a class="code" href="classphysx_1_1PxTask.html#d3828abb4bd2237af28ecd08b972b1af">00174</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#d3828abb4bd2237af28ecd08b972b1af" title="Manually increment this task&amp;#39;s reference count. The task will not be allowed...">addReference</a>()
+<a name="l00175"></a>00175 {
+<a name="l00176"></a>00176 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>);
+<a name="l00177"></a>00177 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;addReference( <a class="code" href="classphysx_1_1PxTask.html#a67264a3a16ca138fd854539bf52ac06" title="ID assigned at submission.">mTaskID</a> );
+<a name="l00178"></a>00178 }
+<a name="l00179"></a>00179
+<a name="l00184"></a><a class="code" href="classphysx_1_1PxTask.html#097c70f1419ad4991ef876ddd9a74d48">00184</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#097c70f1419ad4991ef876ddd9a74d48" title="Manually decrement this task&amp;#39;s reference count. If the reference count reaches...">removeReference</a>()
+<a name="l00185"></a>00185 {
+<a name="l00186"></a>00186 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>);
+<a name="l00187"></a>00187 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;decrReference( <a class="code" href="classphysx_1_1PxTask.html#a67264a3a16ca138fd854539bf52ac06" title="ID assigned at submission.">mTaskID</a> );
+<a name="l00188"></a>00188 }
+<a name="l00189"></a>00189
+<a name="l00193"></a><a class="code" href="classphysx_1_1PxTask.html#7d7d155ba008883d3bed7db443421908">00193</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> int32_t <a class="code" href="classphysx_1_1PxTask.html#7d7d155ba008883d3bed7db443421908" title="Return the ref-count for this task.">getReference</a>()<span class="keyword"> const</span>
+<a name="l00194"></a>00194 <span class="keyword"> </span>{
+<a name="l00195"></a>00195 <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;getReference( <a class="code" href="classphysx_1_1PxTask.html#a67264a3a16ca138fd854539bf52ac06" title="ID assigned at submission.">mTaskID</a> );
+<a name="l00196"></a>00196 }
+<a name="l00197"></a>00197
+<a name="l00201"></a><a class="code" href="classphysx_1_1PxTask.html#762b45266ec713eb7f599574a7998057">00201</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#7a08e207472f32da1e024056f32d64a2">PxTaskID</a> <a class="code" href="classphysx_1_1PxTask.html#762b45266ec713eb7f599574a7998057" title="Return the unique ID for this task.">getTaskID</a>()<span class="keyword"> const</span>
+<a name="l00202"></a>00202 <span class="keyword"> </span>{
+<a name="l00203"></a>00203 <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxTask.html#a67264a3a16ca138fd854539bf52ac06" title="ID assigned at submission.">mTaskID</a>;
+<a name="l00204"></a>00204 }
+<a name="l00205"></a>00205
+<a name="l00211"></a><a class="code" href="classphysx_1_1PxTask.html#2a0a6f83fcd05069f594631272faa8ae">00211</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#2a0a6f83fcd05069f594631272faa8ae" title="Called by PxTaskManager at submission time for initialization.">submitted</a>()
+<a name="l00212"></a>00212 {
+<a name="l00213"></a>00213 <a class="code" href="classphysx_1_1PxTask.html#5c506b76e0ce7380e77a384837fbbcc5" title="GpuTask CUDA stream index.">mStreamIndex</a> = 0;
+<a name="l00214"></a>00214 <a class="code" href="classphysx_1_1PxTask.html#ddde0e4cc4291d493d0025682f767606" title="GpuTask sync flag.">mPreSyncRequired</a> = <span class="keyword">false</span>;
+<a name="l00215"></a>00215 <a class="code" href="classphysx_1_1PxBaseTask.html#859800d5acb01168c7fae071d8e86e26" title="Profiling statistic.">mProfileStat</a> = 0;
+<a name="l00216"></a>00216 }
+<a name="l00217"></a>00217
+<a name="l00221"></a><a class="code" href="classphysx_1_1PxTask.html#2506a8dacc91048a7baafba5187d787a">00221</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxTask.html#2506a8dacc91048a7baafba5187d787a" title="Specify that the GpuTask sync flag be set.">requestSyncPoint</a>()
+<a name="l00222"></a>00222 {
+<a name="l00223"></a>00223 <a class="code" href="classphysx_1_1PxTask.html#ddde0e4cc4291d493d0025682f767606" title="GpuTask sync flag.">mPreSyncRequired</a> = <span class="keyword">true</span>;
+<a name="l00224"></a>00224 }
+<a name="l00225"></a>00225
+<a name="l00226"></a>00226
+<a name="l00227"></a>00227 <span class="keyword">protected</span>:
+<a name="l00228"></a><a class="code" href="classphysx_1_1PxTask.html#a67264a3a16ca138fd854539bf52ac06">00228</a> <a class="code" href="namespacephysx.html#7a08e207472f32da1e024056f32d64a2">PxTaskID</a> <a class="code" href="classphysx_1_1PxTask.html#a67264a3a16ca138fd854539bf52ac06" title="ID assigned at submission.">mTaskID</a>;
+<a name="l00229"></a><a class="code" href="classphysx_1_1PxTask.html#5c506b76e0ce7380e77a384837fbbcc5">00229</a> uint32_t <a class="code" href="classphysx_1_1PxTask.html#5c506b76e0ce7380e77a384837fbbcc5" title="GpuTask CUDA stream index.">mStreamIndex</a>;
+<a name="l00230"></a><a class="code" href="classphysx_1_1PxTask.html#ddde0e4cc4291d493d0025682f767606">00230</a> <span class="keywordtype">bool</span> <a class="code" href="classphysx_1_1PxTask.html#ddde0e4cc4291d493d0025682f767606" title="GpuTask sync flag.">mPreSyncRequired</a>;
+<a name="l00231"></a>00231
+<a name="l00232"></a><a class="code" href="classphysx_1_1PxTask.html#c4a43ca8ae513a20c1d61bc9aecfce89">00232</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxTask.html#c4a43ca8ae513a20c1d61bc9aecfce89">PxTaskMgr</a>;
+<a name="l00233"></a><a class="code" href="classphysx_1_1PxTask.html#7f49a59cfb28fd74ba8601e2d0d2d35a">00233</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxTask.html#7f49a59cfb28fd74ba8601e2d0d2d35a">PxGpuWorkerThread</a>;
+<a name="l00234"></a>00234 };
+<a name="l00235"></a>00235
+<a name="l00236"></a>00236
+<a name="l00250"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html">00250</a> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxLightCpuTask.html" title="A PxBaseTask implementation with immediate execution and simple dependencies.">PxLightCpuTask</a> : <span class="keyword">public</span> <a class="code" href="classphysx_1_1PxBaseTask.html" title="Base class of all task types.">PxBaseTask</a>
+<a name="l00251"></a>00251 {
+<a name="l00252"></a>00252 <span class="keyword">public</span>:
+<a name="l00253"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#1576f85a8b81170e5fd28dec773c2a45">00253</a> <a class="code" href="classphysx_1_1PxLightCpuTask.html#1576f85a8b81170e5fd28dec773c2a45">PxLightCpuTask</a>()
+<a name="l00254"></a>00254 : <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a>( NULL )
+<a name="l00255"></a>00255 , <a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a" title="PxTask is dispatched when reaches 0.">mRefCount</a>( 0 )
+<a name="l00256"></a>00256 {
+<a name="l00257"></a>00257 }
+<a name="l00258"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#0d9094c15329d367cff90b95e0bdcf88">00258</a> <span class="keyword">virtual</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#0d9094c15329d367cff90b95e0bdcf88">~PxLightCpuTask</a>()
+<a name="l00259"></a>00259 {
+<a name="l00260"></a>00260 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a> = NULL;
+<a name="l00261"></a>00261 }
+<a name="l00262"></a>00262
+<a name="l00272"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#56ef764508a2bbc98d82bb6dbb09fa3e">00272</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#56ef764508a2bbc98d82bb6dbb09fa3e" title="Initialize this task and specify the task that will have its ref count decremented...">setContinuation</a>(<a class="code" href="classphysx_1_1PxTaskManager.html" title="The PxTaskManager interface.">PxTaskManager</a>&amp; tm, <a class="code" href="classphysx_1_1PxBaseTask.html" title="Base class of all task types.">PxBaseTask</a>* c)
+<a name="l00273"></a>00273 {
+<a name="l00274"></a>00274 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a" title="PxTask is dispatched when reaches 0.">mRefCount</a> == 0 );
+<a name="l00275"></a>00275 <a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a" title="PxTask is dispatched when reaches 0.">mRefCount</a> = 1;
+<a name="l00276"></a>00276 <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a> = c;
+<a name="l00277"></a>00277 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a> = &amp;tm;
+<a name="l00278"></a>00278 <span class="keywordflow">if</span>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a> )
+<a name="l00279"></a>00279 {
+<a name="l00280"></a>00280 <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#07c9f6e71f0723bcf914fce51036d36e" title="Implemented by derived implementation classes.">addReference</a>();
+<a name="l00281"></a>00281 }
+<a name="l00282"></a>00282 }
+<a name="l00283"></a>00283
+<a name="l00291"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#2ae16158861b04543919fdc456bb4559">00291</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#56ef764508a2bbc98d82bb6dbb09fa3e" title="Initialize this task and specify the task that will have its ref count decremented...">setContinuation</a>( <a class="code" href="classphysx_1_1PxBaseTask.html" title="Base class of all task types.">PxBaseTask</a>* c )
+<a name="l00292"></a>00292 {
+<a name="l00293"></a>00293 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( c );
+<a name="l00294"></a>00294 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a" title="PxTask is dispatched when reaches 0.">mRefCount</a> == 0 );
+<a name="l00295"></a>00295 <a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a" title="PxTask is dispatched when reaches 0.">mRefCount</a> = 1;
+<a name="l00296"></a>00296 <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a> = c;
+<a name="l00297"></a>00297 <span class="keywordflow">if</span>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a> )
+<a name="l00298"></a>00298 {
+<a name="l00299"></a>00299 <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#07c9f6e71f0723bcf914fce51036d36e" title="Implemented by derived implementation classes.">addReference</a>();
+<a name="l00300"></a>00300 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a> = <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#f33b34783821f4b8cc455df2e7f45bbe" title="Return PxTaskManager to which this task was submitted.">getTaskManager</a>();
+<a name="l00301"></a>00301 <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>( <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a> );
+<a name="l00302"></a>00302 }
+<a name="l00303"></a>00303 }
+<a name="l00304"></a>00304
+<a name="l00308"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#9896fbb4bbc97517e6ffb73749b6845e">00308</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classphysx_1_1PxBaseTask.html" title="Base class of all task types.">PxBaseTask</a>* <a class="code" href="classphysx_1_1PxLightCpuTask.html#9896fbb4bbc97517e6ffb73749b6845e" title="Retrieves continuation task.">getContinuation</a>()<span class="keyword"> const</span>
+<a name="l00309"></a>00309 <span class="keyword"> </span>{
+<a name="l00310"></a>00310 <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a>;
+<a name="l00311"></a>00311 }
+<a name="l00312"></a>00312
+<a name="l00317"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#4f847956e5ba51a36bbb3ced5bb15a6c">00317</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#4f847956e5ba51a36bbb3ced5bb15a6c" title="Manually decrement this task&amp;#39;s reference count. If the reference count reaches...">removeReference</a>()
+<a name="l00318"></a>00318 {
+<a name="l00319"></a>00319 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;decrReference(*<span class="keyword">this</span>);
+<a name="l00320"></a>00320 }
+<a name="l00321"></a>00321
+<a name="l00323"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#e45cef54851865477ee4f187e1fb5126">00323</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> int32_t <a class="code" href="classphysx_1_1PxLightCpuTask.html#e45cef54851865477ee4f187e1fb5126" title="Return the ref-count for this task.">getReference</a>()<span class="keyword"> const</span>
+<a name="l00324"></a>00324 <span class="keyword"> </span>{
+<a name="l00325"></a>00325 <span class="keywordflow">return</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a" title="PxTask is dispatched when reaches 0.">mRefCount</a>;
+<a name="l00326"></a>00326 }
+<a name="l00327"></a>00327
+<a name="l00332"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#572d87fd23a65723d8e817f65e4681e6">00332</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#572d87fd23a65723d8e817f65e4681e6" title="Manually increment this task&amp;#39;s reference count. The task will not be allowed...">addReference</a>()
+<a name="l00333"></a>00333 {
+<a name="l00334"></a>00334 <a class="code" href="classphysx_1_1PxBaseTask.html#f23fffec1e92c794d3ad73e9fc4fa974" title="Owning PxTaskManager instance.">mTm</a>-&gt;addReference(*<span class="keyword">this</span>);
+<a name="l00335"></a>00335 }
+<a name="l00336"></a>00336
+<a name="l00342"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#ea23c57ffecb54f397089de1f3b0ad20">00342</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classphysx_1_1PxLightCpuTask.html#ea23c57ffecb54f397089de1f3b0ad20" title="called by CpuDispatcher after run method has completed">release</a>()
+<a name="l00343"></a>00343 {
+<a name="l00344"></a>00344 <span class="keywordflow">if</span>( <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a> )
+<a name="l00345"></a>00345 {
+<a name="l00346"></a>00346 <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a>-&gt;<a class="code" href="classphysx_1_1PxBaseTask.html#78f9b745c6fb4114350cb1a26f3461d3" title="Implemented by derived implementation classes.">removeReference</a>();
+<a name="l00347"></a>00347 }
+<a name="l00348"></a>00348 }
+<a name="l00349"></a>00349
+<a name="l00350"></a>00350 <span class="keyword">protected</span>:
+<a name="l00351"></a>00351
+<a name="l00352"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243">00352</a> <a class="code" href="classphysx_1_1PxBaseTask.html" title="Base class of all task types.">PxBaseTask</a>* <a class="code" href="classphysx_1_1PxLightCpuTask.html#7e5dbe5f98e11385d0e0a921d3af8243" title="Continuation task, can be NULL.">mCont</a>;
+<a name="l00353"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a">00353</a> <span class="keyword">volatile</span> int32_t <a class="code" href="classphysx_1_1PxLightCpuTask.html#04e7bde817081eb377f129e7de7e285a" title="PxTask is dispatched when reaches 0.">mRefCount</a>;
+<a name="l00354"></a>00354
+<a name="l00355"></a><a class="code" href="classphysx_1_1PxLightCpuTask.html#c4a43ca8ae513a20c1d61bc9aecfce89">00355</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classphysx_1_1PxLightCpuTask.html#c4a43ca8ae513a20c1d61bc9aecfce89">PxTaskMgr</a>;
+<a name="l00356"></a>00356 };
+<a name="l00357"></a>00357
+<a name="l00358"></a>00358
+<a name="l00359"></a>00359 }<span class="comment">// end physx namespace</span>
+<a name="l00360"></a>00360
+<a name="l00361"></a>00361
+<a name="l00362"></a>00362 <span class="preprocessor">#endif // PXTASK_PXTASK_H</span>
+</pre></div></div>
+
+<hr style="width: 100%; height: 2px;"><br>
+Copyright &copy; 2008-2016 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
+</body>
+</html>