* Add a dependency to force 'task' to complete before the * referenced 'taskID' is allowed to be dispatched. */
| 374 | * referenced 'taskID' is allowed to be dispatched. |
| 375 | */ |
| 376 | void 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 | /* |
nothing calls this directly
no test coverage detected