* Add an unnamed task to the task table */
| 337 | * Add an unnamed task to the task table |
| 338 | */ |
| 339 | PxTaskID PxTaskMgr::submitUnnamedTask( PxTask& task, PxTaskType::Enum type ) |
| 340 | { |
| 341 | shdfnd::atomicIncrement(&mPendingTasks); |
| 342 | |
| 343 | task.mTm = this; |
| 344 | task.submitted(); |
| 345 | |
| 346 | LOCK(); |
| 347 | task.mTaskID = static_cast<PxTaskID>(mTaskTable.size()); |
| 348 | PxTaskTableRow r; |
| 349 | r.mTask = &task; |
| 350 | r.mType = type; |
| 351 | mTaskTable.pushBack(r); |
| 352 | return task.mTaskID; |
| 353 | } |
| 354 | |
| 355 | |
| 356 | /* Called by worker threads (or cooperating application threads) when a |
nothing calls this directly
no test coverage detected