MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / cancelPendingEvents

Function cancelPendingEvents

Engine/source/console/simManager.cpp:165–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void cancelPendingEvents(SimObject *obj)
166{
167 Mutex::lockMutex(gEventQueueMutex);
168
169 SimEvent **walk = &gEventQueue;
170 SimEvent *current;
171
172 while((current = *walk) != NULL)
173 {
174 if(current->destObject == obj)
175 {
176 *walk = current->nextEvent;
177 delete current;
178 }
179 else
180 walk = &(current->nextEvent);
181 }
182 Mutex::unlockMutex(gEventQueueMutex);
183}
184
185//---------------------------------------------------------------------------
186// event pending test

Callers 2

unregisterObjectMethod · 0.85
sim.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected