sql_score init is threaded now

This commit is contained in:
H-M-H 2016-01-28 15:21:57 +01:00
parent f6be7e20fb
commit 783c2161f1
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@ CSqlServer::CSqlServer(const char* pDatabase, const char* pPrefix, const char* p
m_pConnection = 0;
m_pResults = 0;
m_pStatement = 0;
m_SqlLock = lock_create();
}

View file

@ -32,7 +32,8 @@ m_pServer(pGameServer->Server())
CSqlData::ms_pPlayerData = PlayerData(0);
CSqlData::ms_pMap = m_aMap;
ExecSqlFunc(new CSqlExecData(Init, new CSqlData()));
void* InitThread = thread_init(ExecSqlFunc, new CSqlExecData(Init, new CSqlData()));
thread_detach(InitThread);
}
void CSqlScore::ExecSqlFunc(void *pUser)