mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-02-23 18:33:22 +03:00
openwrt: base: Disable lock-free assert on ARMv6
This commit is contained in:
parent
315b7fdd3c
commit
37ddbd71ab
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user