Nazara now use thread_local (GCC 4.8 is required)

Former-commit-id: 09c0c24ede4a6860acfc71b9532f286bd1381dda
This commit is contained in:
Lynix
2013-05-03 02:55:26 +02:00
parent 5aeb9d63b8
commit 780bcf122c
2 changed files with 2 additions and 9 deletions

View File

@@ -22,8 +22,8 @@
namespace
{
NAZARA_THREADLOCAL const NzContext* currentContext = nullptr;
NAZARA_THREADLOCAL const NzContext* threadContext = nullptr;
thread_local const NzContext* currentContext = nullptr;
thread_local const NzContext* threadContext = nullptr;
std::vector<NzContext*> contexts;