openwrt: third_party: Disable lock-free assert on ARMv5
parent
d8d1431b1a
commit
0914742894
|
@ -102,8 +102,8 @@ __inline static void lock(Lock *l) { OSSpinLockLock(l); }
|
||||||
static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
|
static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
|
||||||
|
|
||||||
#else
|
#else
|
||||||
_Static_assert(__atomic_always_lock_free(sizeof(uintptr_t), 0),
|
//_Static_assert(__atomic_always_lock_free(sizeof(uintptr_t), 0),
|
||||||
"Implementation assumes lock-free pointer-size cmpxchg");
|
// "Implementation assumes lock-free pointer-size cmpxchg");
|
||||||
typedef _Atomic(uintptr_t) Lock;
|
typedef _Atomic(uintptr_t) Lock;
|
||||||
/// Unlock a lock. This is a release operation.
|
/// Unlock a lock. This is a release operation.
|
||||||
__inline static void unlock(Lock *l) {
|
__inline static void unlock(Lock *l) {
|
||||||
|
|
Loading…
Reference in New Issue