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

Method AddQueryToQueue

extensions/clientprefs/extension.cpp:378–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378bool ClientPrefs::AddQueryToQueue(TQueryOp *query)
379{
380 {
381 std::lock_guard<std::mutex> lock(queryLock);
382 if (!Database)
383 {
384 cachedQueries.push_back(query);
385 return false;
386 }
387
388 if (!cachedQueries.empty())
389 this->ProcessQueryCache();
390 }
391
392 query->SetDatabase(Database);
393 dbi->AddToThreadQueue(query, PrioQueue_Normal);
394 return true;
395}
396
397void ClientPrefs::ProcessQueryCache()
398{

Callers 5

SetAuthIdCookieFunction · 0.80
CreateCookieMethod · 0.80
OnClientAuthorizedMethod · 0.80
OnClientDisconnectingMethod · 0.80
InsertCookieCallbackMethod · 0.80

Calls 5

ProcessQueryCacheMethod · 0.95
push_backMethod · 0.80
emptyMethod · 0.80
SetDatabaseMethod · 0.80
AddToThreadQueueMethod · 0.80

Tested by

no test coverage detected