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

Method onZoneRemoved

physx/source/pvd/src/PxPvdProfileZoneClient.cpp:157–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void PvdProfileZoneClient::onZoneRemoved(profile::PxProfileZone& zone)
158{
159 for(uint32_t i = 0; i < mProfileZoneClients.size(); i++)
160 {
161 if(&zone == &mProfileZoneClients[i]->mZone)
162 {
163 mMutex.lock();
164 ProfileZoneClient* client = mProfileZoneClients[i];
165 mProfileZoneClients.replaceWithLast(i);
166 PVD_DELETE(client);
167 mMutex.unlock();
168 return;
169 }
170 }
171}

Callers 2

removeProfileZoneMethod · 0.80

Calls 4

sizeMethod · 0.45
lockMethod · 0.45
replaceWithLastMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected