* Add a dependency to force 'task' to wait for the referenced 'taskID' * to complete before it is allowed to be dispatched. */
| 388 | * to complete before it is allowed to be dispatched. |
| 389 | */ |
| 390 | void 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 | |
| 400 | void PxTaskMgr::addReference( PxTaskID taskID ) |
nothing calls this directly
no test coverage detected