Fix MACROS for when BT_THREADSAFE is defined

This commit is contained in:
kwasimensah
2017-11-12 00:48:59 -05:00
committed by GitHub
parent 8aefa7e8d0
commit 2f58cf0d00

View File

@@ -708,7 +708,8 @@ unsigned int btQuickprofGetCurrentThreadIndex2() {
#if BT_THREADSAFE
return btGetCurrentThreadIndex();
#elif defined(BT_HAVE_TLS)
#else
#if defined(BT_HAVE_TLS)
static __thread unsigned int sThreadIndex = kNullIndex;
#elif defined(_WIN32)
__declspec(thread) static unsigned int sThreadIndex = kNullIndex;
@@ -723,6 +724,7 @@ unsigned int btQuickprofGetCurrentThreadIndex2() {
sThreadIndex = gThreadCounter++;
}
return sThreadIndex;
#endif //BT_THREADSAFE
}
void btEnterProfileZoneDefault(const char* name)