mirror of
https://github.com/wownero/wownero.git
synced 2026-10-22 18:08:34 +02:00
src: remove non-standard thread extensions
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
|
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
||||||
#warning "Building with fuzzing 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
|
#else
|
||||||
static __thread std::vector<LoggingPerformanceTimer*> *performance_timers = NULL;
|
static thread_local std::vector<LoggingPerformanceTimer*> *performance_timers = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void set_performance_timer_log_level(el::Level level)
|
void set_performance_timer_log_level(el::Level level)
|
||||||
|
|||||||
@@ -31,8 +31,8 @@
|
|||||||
#include "cryptonote_config.h"
|
#include "cryptonote_config.h"
|
||||||
#include "common/util.h"
|
#include "common/util.h"
|
||||||
|
|
||||||
static __thread int depth = 0;
|
static thread_local int depth = 0;
|
||||||
static __thread bool is_leaf = false;
|
static thread_local bool is_leaf = false;
|
||||||
|
|
||||||
namespace tools
|
namespace tools
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ static int secondary_seedhash_set = 0;
|
|||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define THREADV __declspec(thread)
|
#define THREADV __declspec(thread)
|
||||||
#else
|
#else
|
||||||
#define THREADV __thread
|
#define THREADV _Thread_local
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static THREADV randomx_vm *main_vm_full = NULL;
|
static THREADV randomx_vm *main_vm_full = NULL;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define THREADV __declspec(thread)
|
#define THREADV __declspec(thread)
|
||||||
#else
|
#else
|
||||||
#define THREADV __thread
|
#define THREADV _Thread_local
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void aesb_single_round(const uint8_t *in, uint8_t *out, const uint8_t *expandedKey);
|
extern void aesb_single_round(const uint8_t *in, uint8_t *out, const uint8_t *expandedKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user