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

Function cancelEvent

Engine/source/console/simManager.cpp:142–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140// event cancellation
141
142void cancelEvent(U32 eventSequence)
143{
144 Mutex::lockMutex(gEventQueueMutex);
145
146 SimEvent **walk = &gEventQueue;
147 SimEvent *current;
148
149 while((current = *walk) != NULL)
150 {
151 if(current->sequenceCount == eventSequence)
152 {
153 *walk = current->nextEvent;
154 delete current;
155 Mutex::unlockMutex(gEventQueueMutex);
156 return;
157 }
158 else
159 walk = &(current->nextEvent);
160 }
161
162 Mutex::unlockMutex(gEventQueueMutex);
163}
164
165void cancelPendingEvents(SimObject *obj)
166{

Callers 5

DefineEngineFunctionFunction · 0.85
scheduleUpdateMethod · 0.85
~PhysicsObjectMethod · 0.85
queueCallbackMethod · 0.85
on3DMouseUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected