mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-02 13:26:18 +03:00
openwrt: base: Disable lock-free assert on ARMv6
This commit is contained in:
parent
6d158c2dfb
commit
6ac9d66903
2 changed files with 1 additions and 2 deletions
|
@ -46,7 +46,7 @@ struct SampleRecord {
|
|||
std::atomic<Count32> count; // The count associated with the above value.
|
||||
|
||||
// `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
|
||||
// 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…
Add table
Reference in a new issue