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

Method RunFrame

core/logic/Database.cpp:489–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489void DBManager::RunFrame()
490{
491 /* Don't bother if we're empty */
492 if (!m_ThinkQueue.size())
493 {
494 return;
495 }
496
497 /* Dump one thing per-frame so the server stays sane. */
498 IDBThreadOperation *op;
499 {
500 std::lock_guard<std::mutex> lock(m_ThinkLock);
501 op = m_ThinkQueue.first();
502 m_ThinkQueue.pop();
503 }
504 op->RunThinkPart();
505 op->Destroy();
506}
507
508void DBManager::OnSourceModIdentityDropped(IdentityToken_t *pToken)
509{

Callers 1

FrameHookFunction · 0.45

Calls 4

popMethod · 0.80
sizeMethod · 0.45
RunThinkPartMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected