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

Method releaseArticulationToPool

physx/source/physx/src/NpFactory.cpp:236–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void NpFactory::releaseArticulationToPool(PxArticulationBase& articulation)
237{
238
239 PX_ASSERT(articulation.getBaseFlags() & PxBaseFlag::eOWNS_MEMORY);
240 if (articulation.getType() == PxArticulationBase::eMaximumCoordinate)
241 {
242 Ps::Mutex::ScopedLock lock(mArticulationPoolLock);
243 mArticulationPool.destroy(static_cast<NpArticulation*>(&articulation));
244 }
245 else
246 {
247 Ps::Mutex::ScopedLock lock(mArticulationRCPoolLock);
248 mArticulationRCPool.destroy(static_cast<NpArticulationReducedCoordinate*>(&articulation));
249 }
250}
251
252NpArticulation* NpFactory::createNpArticulation()
253{

Callers 1

NpDestroyArticulationFunction · 0.80

Calls 3

getBaseFlagsMethod · 0.80
getTypeMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected