src: remove non-standard thread extensions

This commit is contained in:
jpk68
2026-05-29 22:55:08 +02:00
committed by SNeedlewoods
parent 495c7f18dd
commit ee5115ca2c
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -92,9 +92,9 @@ el::Level performance_timer_log_level = el::Level::Info;
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
#warning "Building with fuzzing mode UNSAFE FOR PRODUCTION!"
__thread std::vector<LoggingPerformanceTimer*> *performance_timers = NULL;
thread_local std::vector<LoggingPerformanceTimer*> *performance_timers = NULL;
#else
static __thread std::vector<LoggingPerformanceTimer*> *performance_timers = NULL;
static thread_local std::vector<LoggingPerformanceTimer*> *performance_timers = NULL;
#endif
void set_performance_timer_log_level(el::Level level)
+2 -2
View File
@@ -31,8 +31,8 @@
#include "cryptonote_config.h"
#include "common/util.h"
static __thread int depth = 0;
static __thread bool is_leaf = false;
static thread_local int depth = 0;
static thread_local bool is_leaf = false;
namespace tools
{
+1 -1
View File
@@ -63,7 +63,7 @@ static int secondary_seedhash_set = 0;
#if defined(_MSC_VER)
#define THREADV __declspec(thread)
#else
#define THREADV __thread
#define THREADV _Thread_local
#endif
static THREADV randomx_vm *main_vm_full = NULL;
+1 -1
View File
@@ -54,7 +54,7 @@
#if defined(_MSC_VER)
#define THREADV __declspec(thread)
#else
#define THREADV __thread
#define THREADV _Thread_local
#endif
extern void aesb_single_round(const uint8_t *in, uint8_t *out, const uint8_t *expandedKey);