31 PxBaseTask() : mEventID(0xFFFF), mProfileStat(0), mTm(0) {}
40 virtual void run() = 0;
49 virtual const char* getName()
const = 0;
52 virtual void addReference() = 0;
54 virtual void removeReference() = 0;
56 virtual PxI32 getReference()
const = 0;
65 virtual void release() = 0;
76 mTm->emitStartEvent(*
this, threadId);
78 mTm->emitStopEvent(*
this, threadId);
110 friend class PxTaskMgr;
127 virtual void release()
142 mTm->finishBefore( *
this, taskID);
150 mTm->startAfter( *
this, taskID );
160 mTm->addReference( mTaskID );
170 mTm->decrReference( mTaskID );
178 return mTm->getReference( mTaskID );
194 virtual void submitted()
197 mPreSyncRequired =
false;
206 mPreSyncRequired =
true;
215 friend class PxTaskMgr;
216 friend class PxGpuWorkerThread;
263 mCont->addReference();
283 mTm = mCont->getTaskManager();
302 mTm->decrReference(*
this);
317 mTm->addReference(*
this);
329 mCont->removeReference();
338 friend class PxTaskMgr;