We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 11a7090 + 03ba474 commit f0cc105Copy full SHA for f0cc105
onnxruntime/core/mlas/lib/platform.cpp
@@ -677,9 +677,9 @@ MlasPlatformU8S8Overflow(
677
678
#endif
679
680
-MLAS_THREAD_LOCAL size_t ThreadedBufSize = 0;
+thread_local size_t ThreadedBufSize = 0;
681
#ifdef _MSC_VER
682
-MLAS_THREAD_LOCAL std::unique_ptr<uint8_t, decltype(&_aligned_free)> ThreadedBufHolder(nullptr, &_aligned_free);
+thread_local std::unique_ptr<uint8_t, decltype(&_aligned_free)> ThreadedBufHolder(nullptr, &_aligned_free);
683
#else
684
-MLAS_THREAD_LOCAL std::unique_ptr<uint8_t, decltype(&free)> ThreadedBufHolder(nullptr, &free);
+thread_local std::unique_ptr<uint8_t, decltype(&free)> ThreadedBufHolder(nullptr, &free);
685
0 commit comments