mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:44:13 +08:00
mdbx: don't use yield
instruction on ARM if unsupported.
Change-Id: I0b01d783fe4336b089f4b051fb61c203b5879aa5
This commit is contained in:
parent
280ed17ea2
commit
70b615e8d4
@ -763,7 +763,8 @@ static __always_inline void atomic_yield(void) {
|
|||||||
#else
|
#else
|
||||||
__asm__ __volatile__("hint @pause");
|
__asm__ __volatile__("hint @pause");
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__arm__) || defined(__aarch64__)
|
#elif defined(__aarch64__) || (defined(__ARM_ARCH) && __ARM_ARCH > 6) || \
|
||||||
|
defined(__ARM_ARCH_6K__)
|
||||||
#ifdef __CC_ARM
|
#ifdef __CC_ARM
|
||||||
__yield();
|
__yield();
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user