MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / CancelThinkPart

Method CancelThinkPart

core/logic/smn_database.cpp:240–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 m_pDatabase->UnlockFromFullAtomicOperation();
239 }
240 void CancelThinkPart()
241 {
242 if (!m_pFunction->IsRunnable())
243 return;
244
245 m_pFunction->PushCell(BAD_HANDLE);
246 m_pFunction->PushCell(BAD_HANDLE);
247 m_pFunction->PushString("Driver is unloading");
248 m_pFunction->PushCell(m_Data);
249 m_pFunction->Execute(NULL);
250 }
251 void RunThinkPart()
252 {
253 /* Create a Handle for our query */

Callers 1

RemoveDriverMethod · 0.45

Calls 4

IsRunnableMethod · 0.80
PushCellMethod · 0.80
PushStringMethod · 0.80
ExecuteMethod · 0.45

Tested by

no test coverage detected