Extern playlists/maplist vec mutex

Reduces initialization overhead.
This commit is contained in:
Kawe Mazidjatari 2023-07-03 17:26:18 +02:00
parent 89b92342d7
commit 615889948b
2 changed files with 7 additions and 3 deletions

View File

@ -1367,5 +1367,9 @@ void VKeyValues::Detach() const
///////////////////////////////////////////////////////////////////////////////
inline KeyValues** g_pPlaylistKeyValues = nullptr; // Get the KeyValue for the playlist file.
vector<string> g_vAllPlaylists = { "<<null>>" };
vector<string> g_vGameInfoPaths = { "/" };
vector<string> g_vGameInfoPaths = { "/" };
std::mutex g_InstalledMapsMutex;
std::mutex g_PlaylistsVecMutex;

View File

@ -9,8 +9,8 @@
extern vector<string> g_vAllPlaylists;
extern vector<string> g_vGameInfoPaths;
inline std::mutex g_InstalledMapsMutex;
inline std::mutex g_PlaylistsVecMutex;
extern std::mutex g_InstalledMapsMutex;
extern std::mutex g_PlaylistsVecMutex;
//---------------------------------------------------------------------------------
// Purpose: Forward declarations