openwrt: base: Disable lock-free assert on ARMv6
parent
99d6403ccd
commit
d8d1431b1a
|
@ -46,7 +46,7 @@ struct SampleRecord {
|
||||||
std::atomic<Count32> count; // The count associated with the above value.
|
std::atomic<Count32> count; // The count associated with the above value.
|
||||||
|
|
||||||
// `count` may operate inter-process and so must be lock-free.
|
// `count` may operate inter-process and so must be lock-free.
|
||||||
static_assert(std::atomic<Count32>::is_always_lock_free);
|
// static_assert(std::atomic<Count32>::is_always_lock_free);
|
||||||
|
|
||||||
// For backwards compatibility, `std::atomic<Count>` and `Count` must have
|
// For backwards compatibility, `std::atomic<Count>` and `Count` must have
|
||||||
// the same memory layouts. If this ever changes, make sure to increment
|
// the same memory layouts. If this ever changes, make sure to increment
|
||||||
|
|
|
@ -225,7 +225,6 @@ class BASE_EXPORT ThreadCollisionWarner {
|
||||||
// This stores the thread id that is inside the critical section, if the
|
// This stores the thread id that is inside the critical section, if the
|
||||||
// value is 0 then no thread is inside.
|
// value is 0 then no thread is inside.
|
||||||
std::atomic<PlatformThreadId> valid_thread_id_;
|
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"
|
// Counter to trace how many time a critical section was "pinned"
|
||||||
// (when allowed) in order to unpin it when counter_ reaches 0.
|
// (when allowed) in order to unpin it when counter_ reaches 0.
|
||||||
|
|
Loading…
Reference in New Issue