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

Method RunThreadPart

core/logic/smn_database.cpp:230–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 return m_pDatabase->GetDriver();
229 }
230 void RunThreadPart()
231 {
232 m_pDatabase->LockForFullAtomicOperation();
233 m_pQuery = m_pDatabase->DoQuery(m_Query.c_str());
234 if (!m_pQuery)
235 {
236 g_pSM->Format(error, sizeof(error), "%s", m_pDatabase->GetError());
237 }
238 m_pDatabase->UnlockFromFullAtomicOperation();
239 }
240 void CancelThinkPart()
241 {
242 if (!m_pFunction->IsRunnable())

Callers 4

ConnectToDbAsyncFunction · 0.45
SQL_TQueryFunction · 0.45
SQL_ExecuteTransactionFunction · 0.45
ThreadMainMethod · 0.45

Calls 6

FormatMethod · 0.80
DoQueryMethod · 0.45
c_strMethod · 0.45
GetErrorMethod · 0.45

Tested by

no test coverage detected