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

Method addDependency

physx/source/task/src/TaskManager.cpp:59–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 public:
58 PxTaskTableRow() : mRefCount( 1 ), mStartDep(EOL), mLastDep(EOL) {}
59 void addDependency( PxTaskDepTable& depTable, PxTaskID taskID )
60 {
61 int newDep = int(depTable.size());
62 PxTaskDepTableRow row;
63 row.mTaskID = taskID;
64 row.mNextDep = EOL;
65 depTable.pushBack( row );
66
67 if( mLastDep == EOL )
68 {
69 mStartDep = mLastDep = newDep;
70 }
71 else
72 {
73 depTable[ uint32_t(mLastDep) ].mNextDep = newDep;
74 mLastDep = newDep;
75 }
76 }
77
78 PxTask * mTask;
79 volatile int mRefCount;

Callers 2

finishBeforeMethod · 0.80
startAfterMethod · 0.80

Calls 2

sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected