#pragma once | #pragma once | ||||
#define LIB_RESUMEF_VERSION 20400 // 2.4.0 | |||||
#define LIB_RESUMEF_VERSION 20401 // 2.4.1 | |||||
#if defined(RESUMEF_MODULE_EXPORT) | #if defined(RESUMEF_MODULE_EXPORT) | ||||
#define RESUMEF_NS export namespace resumef | #define RESUMEF_NS export namespace resumef |
RESUMEF_NS | RESUMEF_NS | ||||
{ | { | ||||
#if defined(RESUMEF_USE_CUSTOM_SPINLOCK) | |||||
using spinlock = RESUMEF_USE_CUSTOM_SPINLOCK; | |||||
#else | |||||
struct spinlock | struct spinlock | ||||
{ | { | ||||
static const size_t MAX_ACTIVE_SPIN = 1000; | static const size_t MAX_ACTIVE_SPIN = 1000; | ||||
lck.store(FREE_VALUE, std::memory_order_release); | lck.store(FREE_VALUE, std::memory_order_release); | ||||
} | } | ||||
}; | }; | ||||
#endif | |||||
} | } |