forked from metin-server/m2dev-client-src
Consolidate file loading threading to CGameThreadPool
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "Resource.h"
|
||||
#include "FileLoaderThread.h"
|
||||
#include "FileLoaderThreadPool.h"
|
||||
|
||||
#include <set>
|
||||
#include <map>
|
||||
@@ -47,7 +46,6 @@ class CResourceManager : public CSingleton<CResourceManager>
|
||||
void PushBackgroundLoadingSet(std::set<std::string> & LoadingSet);
|
||||
|
||||
CTextureCache* GetTextureCache() { return m_pTextureCache; }
|
||||
CFileLoaderThreadPool* GetLoaderThreadPool() { return m_pLoaderThreadPool; }
|
||||
|
||||
protected:
|
||||
void __DestroyDeletingResourceMap();
|
||||
@@ -75,7 +73,6 @@ class CResourceManager : public CSingleton<CResourceManager>
|
||||
TResourceRefDecreaseWaitingMap m_pResRefDecreaseWaitingMap;
|
||||
|
||||
static CFileLoaderThread ms_loadingThread;
|
||||
CFileLoaderThreadPool* m_pLoaderThreadPool;
|
||||
CTextureCache* m_pTextureCache;
|
||||
|
||||
mutable std::mutex m_ResourceMapMutex; // Thread-safe resource map access
|
||||
|
||||
Reference in New Issue
Block a user