Mac OSX: use __thread for thread-local storage

This commit is contained in:
Andreas Schroeder committed 2014-04-29 22:46:42 +02:00
1 parent 64cfab5b46
commit e7f0efa56d
2 files changed
+4

No files matched your search

+2
View File
@@ -3,6 +3,8 @@
#ifdef _WIN32
__declspec(thread)
#elif __APPLE__
__thread
#else
thread_local
#endif