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

Method releaseConstraintToPool

physx/source/physx/src/NpFactory.cpp:385–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void NpFactory::releaseConstraintToPool(NpConstraint& constraint)
386{
387 PX_ASSERT(constraint.getBaseFlags() & PxBaseFlag::eOWNS_MEMORY);
388 Ps::Mutex::ScopedLock lock(mConstraintPoolLock);
389 mConstraintPool.destroy(&constraint);
390}
391
392void NpFactory::onConstraintRelease(PxConstraint* c)
393{

Callers 1

NpDestroyConstraintFunction · 0.80

Calls 2

getBaseFlagsMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected