mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 00:32:53 +00:00
Core: Use the thread_local keyword
Android and OSX are still twiddling their thumbs though, so we have to keep pthreads around for them.
This commit is contained in:
parent
8a1bbaa563
commit
2904e96f1e
@ -73,15 +73,11 @@
|
||||
#include "VideoCommon/RenderBase.h"
|
||||
#include "VideoCommon/VideoBackendBase.h"
|
||||
|
||||
// This can mostly be removed when we move to VS2015
|
||||
// to use the thread_local keyword
|
||||
#ifdef _MSC_VER
|
||||
#define ThreadLocalStorage __declspec(thread)
|
||||
#elif defined __ANDROID__ || defined __APPLE__
|
||||
// This will most likely have to stay, to support android
|
||||
// Android and OSX haven't implemented the keyword yet.
|
||||
#if defined __ANDROID__ || defined __APPLE__
|
||||
#include <pthread.h>
|
||||
#else // Everything besides VS and Android
|
||||
#define ThreadLocalStorage __thread
|
||||
#else // Everything besides OSX and Android
|
||||
#define ThreadLocalStorage thread_local
|
||||
#endif
|
||||
|
||||
namespace Core
|
||||
|
Loading…
x
Reference in New Issue
Block a user