MCPcopy Create free account
hub / github.com/ddnet/ddnet / RegisterMysqlDatabase

Method RegisterMysqlDatabase

src/engine/server/databases/connection_pool.cpp:138–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void CDbConnectionPool::RegisterMysqlDatabase(Mode DatabaseMode, const CMysqlConfig *pMysqlConfig)
139{
140 m_pShared->m_aQueries[m_InsertIdx++] = std::make_unique<CSqlExecData>(DatabaseMode, pMysqlConfig);
141 m_InsertIdx %= std::size(m_pShared->m_aQueries);
142 m_pShared->m_NumBackup.Signal();
143}
144
145void CDbConnectionPool::Execute(
146 FRead pFunc,

Callers 1

ConAddSqlServerMethod · 0.80

Calls 1

SignalMethod · 0.80

Tested by

no test coverage detected