Skip to content

Commit

Permalink
exlib, refactor: change to thread_local.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Jan 8, 2023
1 parent b1874e3 commit 387c508
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions exlib/src/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@

namespace exlib {

#if defined(_MSC_VER)
__declspec(thread) void* th_current;
#else
__thread void* th_current;
#endif
thread_local void* th_current;

void* OSThread::Entry(void* arg)
{
Expand Down

0 comments on commit 387c508

Please sign in to comment.