MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / startAfter

Method startAfter

physx/source/task/src/TaskManager.cpp:390–397  ·  view source on GitHub ↗

* Add a dependency to force 'task' to wait for the referenced 'taskID' * to complete before it is allowed to be dispatched. */

Source from the content-addressed store, hash-verified

388 * to complete before it is allowed to be dispatched.
389 */
390void PxTaskMgr::startAfter( PxTask& task, PxTaskID taskID )
391{
392 LOCK();
393 PX_ASSERT( mTaskTable[ taskID ].mType != PxTaskType::TT_COMPLETED );
394
395 mTaskTable[ taskID ].addDependency( mDepTable, task.mTaskID );
396 shdfnd::atomicIncrement( &mTaskTable[ task.mTaskID ].mRefCount );
397}
398
399
400void PxTaskMgr::addReference( PxTaskID taskID )

Callers

nothing calls this directly

Calls 2

addDependencyMethod · 0.80
atomicIncrementFunction · 0.50

Tested by

no test coverage detected