openwrt: base: Disable lock-free assert on ARMv6

This commit is contained in:
klzgrad 2025-02-07 22:57:10 +08:00
parent 315b7fdd3c
commit 37ddbd71ab
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@ struct SampleRecord {
std::atomic<Count> count; // The count associated with the above value.
// `count` may operate inter-process and so must be lock-free.
static_assert(std::atomic<Count>::is_always_lock_free);
// static_assert(std::atomic<Count>::is_always_lock_free);
// For backwards compatibility, `std::atomic<Count>` and `Count` must have
// the same memory layouts. If this ever changes, make sure to increment

View File

@ -225,7 +225,6 @@ class BASE_EXPORT ThreadCollisionWarner {
// This stores the thread id that is inside the critical section, if the
// value is 0 then no thread is inside.
std::atomic<PlatformThreadId> valid_thread_id_;
static_assert(std::atomic<PlatformThreadId>::is_always_lock_free, "");
// Counter to trace how many time a critical section was "pinned"
// (when allowed) in order to unpin it when counter_ reaches 0.