MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / ~TaskPool

Method ~TaskPool

physx/source/common/src/CmTaskPool.h:67–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 ~TaskPool()
68 {
69 Ps::Mutex::ScopedLock lock(slabAllocMutex);
70
71 freeTasks->flush();
72
73 for(PxU32 i=0;i<slabArray.size();i++)
74 {
75 // call destructors
76 for(PxU32 j=0; j<TaskPoolSlabSize; j++)
77 slabArray[i][j].~T();
78
79 deallocate(slabArray[i]);
80 }
81
82 slabArray.clear();
83
84 if(freeTasks!=NULL)
85 {
86 freeTasks->~SList();
87 deallocate(freeTasks);
88 freeTasks = NULL;
89 }
90 }
91
92 T *allocTask()
93 {

Callers

nothing calls this directly

Calls 4

deallocateFunction · 0.85
flushMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected