mirror of
https://github.com/monero-project/monero.git
synced 2026-06-12 19:11:36 -07:00
Merge pull request #10627
ee5115c src: remove non-standard thread extensions (jpk68)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -58,7 +58,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);
|
||||
|
||||
Reference in New Issue
Block a user