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

Function addToTracking

physx/source/physx/src/NpFactory.cpp:116–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115template <class T0, class T1>
116static void addToTracking(T1& set, T0* element, Ps::Mutex& mutex, bool lock)
117{
118 if(!element)
119 return;
120
121 if(lock)
122 mutex.lock();
123
124 set.insert(element);
125
126 if(lock)
127 mutex.unlock();
128}
129
130/////////////////////////////////////////////////////////////////////////////// Actors
131

Callers 6

addRigidStaticMethod · 0.85
addRigidDynamicMethod · 0.85
addShapeMethod · 0.85
addArticulationMethod · 0.85
addConstraintMethod · 0.85
addAggregateMethod · 0.85

Calls 3

lockMethod · 0.45
insertMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected