forked from metin-server/m2dev-client-src
add GameThreadPool
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <set>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
|
||||
class CTextureCache;
|
||||
|
||||
@@ -76,6 +77,8 @@ class CResourceManager : public CSingleton<CResourceManager>
|
||||
static CFileLoaderThread ms_loadingThread;
|
||||
CFileLoaderThreadPool* m_pLoaderThreadPool;
|
||||
CTextureCache* m_pTextureCache;
|
||||
|
||||
mutable std::mutex m_ResourceMapMutex; // Thread-safe resource map access
|
||||
};
|
||||
|
||||
extern int g_iLoadingDelayTime;
|
||||
Reference in New Issue
Block a user