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

Method finishBefore

physx/source/task/src/TaskManager.cpp:376–383  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

374 * referenced 'taskID' is allowed to be dispatched.
375 */
376void PxTaskMgr::finishBefore( PxTask& task, PxTaskID taskID )
377{
378 LOCK();
379 PX_ASSERT( mTaskTable[ taskID ].mType != PxTaskType::TT_COMPLETED );
380
381 mTaskTable[ task.mTaskID ].addDependency( mDepTable, taskID );
382 shdfnd::atomicIncrement( &mTaskTable[ taskID ].mRefCount );
383}
384
385
386/*

Callers

nothing calls this directly

Calls 2

addDependencyMethod · 0.80
atomicIncrementFunction · 0.50

Tested by

no test coverage detected