Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
px4_atomic: Overload __atomic_always_lock_free for RISC-V
The macro __atomic_always_lock_free is lying on some compiler versions; RISC-V does have subword atomics, but for some reason the macro refuses to understand this. We know for a fact that all sizes <= sizeof(pointer) are atomic, so overload the macro to fix px4::atomic for RISC-V. This also allows removing the implicit typing of atomic<bool> as atomic<int>
- Loading branch information