Made current directory thread local
Former-commit-id: 6d4f42b6ca5102404b543a5b4e6bedee1aa291f1
This commit is contained in:
parent
a8ab9e2c74
commit
8f593d56f4
|
|
@ -6,7 +6,6 @@
|
|||
#include <Nazara/Core/Config.hpp>
|
||||
#include <Nazara/Core/Error.hpp>
|
||||
#include <Nazara/Core/File.hpp>
|
||||
//#include <Nazara/Core/ThreadLocal.hpp>
|
||||
|
||||
#if defined(NAZARA_PLATFORM_WINDOWS)
|
||||
#include <Nazara/Core/Win32/DirectoryImpl.hpp>
|
||||
|
|
@ -20,8 +19,7 @@
|
|||
|
||||
namespace
|
||||
{
|
||||
NzString currentPath(NzDirectoryImpl::GetCurrent());
|
||||
//static ThreadLocal<NzString> currentPath(NzDirectoryImpl::GetCurrent());
|
||||
thread_local NzString currentPath(NzDirectoryImpl::GetCurrent());
|
||||
}
|
||||
|
||||
NzDirectory::NzDirectory() :
|
||||
|
|
|
|||
Loading…
Reference in New Issue