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

Method submitUnnamedTask

physx/source/task/src/TaskManager.cpp:339–353  ·  view source on GitHub ↗

* Add an unnamed task to the task table */

Source from the content-addressed store, hash-verified

337 * Add an unnamed task to the task table
338 */
339PxTaskID 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

Callers

nothing calls this directly

Calls 4

submittedMethod · 0.80
atomicIncrementFunction · 0.50
sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected