Core/MemoryManager: Made NextFree thread-safe

Former-commit-id: e87a05254538b265761f836a35b1f00474fbf3c7
This commit is contained in:
Lynix 2015-05-03 18:07:57 +02:00
parent 100952d0b1
commit 4b43cc2d59
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ namespace
bool s_initialized = false;
const unsigned int s_magic = 0xDEADB33FUL;
const char* s_logFileName = "NazaraMemory.log";
const char* s_nextFreeFile = "(Internal error)";
unsigned int s_nextFreeLine = 0;
thread_local const char* s_nextFreeFile = "(Internal error)";
thread_local unsigned int s_nextFreeLine = 0;
Block s_list =
{