| 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; |
no test coverage detected