Removed THREAD_LOCAL macro. (#101)

This commit is contained in:
Tom Lally 2022-08-30 05:10:33 +01:00 committed by GitHub
parent d94ecfe078
commit c065d22dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 12 deletions

View File

@ -45,8 +45,8 @@ namespace coreinit
bool g_isMulticoreMode; bool g_isMulticoreMode;
THREAD_LOCAL uint32 t_assignedCoreIndex; thread_local uint32 t_assignedCoreIndex;
THREAD_LOCAL Fiber* t_schedulerFiber; thread_local Fiber* t_schedulerFiber;
struct OSHostThread struct OSHostThread
{ {

View File

@ -201,8 +201,8 @@ static_assert(sizeof(CURLMsg_t) <= 0xC, "sizeof(CURLMsg_t)");
size_t header_callback(char* buffer, size_t size, size_t nitems, void* userdata); size_t header_callback(char* buffer, size_t size, size_t nitems, void* userdata);
THREAD_LOCAL PPCConcurrentQueue<QueueMsg_t>* g_callerQueue; thread_local PPCConcurrentQueue<QueueMsg_t>* g_callerQueue;
THREAD_LOCAL ConcurrentQueue<QueueMsg_t>* g_threadQueue; thread_local ConcurrentQueue<QueueMsg_t>* g_threadQueue;
void CurlWorkerThread(CURL_t* curl, PPCConcurrentQueue<QueueMsg_t>* callerQueue, ConcurrentQueue<QueueMsg_t>* threadQueue) void CurlWorkerThread(CURL_t* curl, PPCConcurrentQueue<QueueMsg_t>* callerQueue, ConcurrentQueue<QueueMsg_t>* threadQueue)
{ {
g_callerQueue = callerQueue; g_callerQueue = callerQueue;

View File

@ -225,14 +225,6 @@ typedef union _LARGE_INTEGER {
#define DEBUG_BREAK raise(SIGTRAP) #define DEBUG_BREAK raise(SIGTRAP)
#endif #endif
#if defined(_MSC_VER)
#define THREAD_LOCAL __declspec(thread)
#elif defined(__GNUC__)
#define THREAD_LOCAL __thread
#else
#define THREAD_LOCAL thread_local
#endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define DLLEXPORT __declspec(dllexport) #define DLLEXPORT __declspec(dllexport)
#elif defined(__GNUC__) #elif defined(__GNUC__)