Skip to content

Commit

Permalink
Add another change from atomic_queue v1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Dec 18, 2024
1 parent 5aaef4f commit e9eb8a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/public/atomic_queue/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ static inline void spin_loop_pause() noexcept {
}
} // namespace atomic_queue
#else
#ifdef _MSC_VER
#pragma message("Unknown CPU architecture. Using L1 cache line size of 64 bytes and no spinloop pause instruction.")
#else
#warning "Unknown CPU architecture. Using L1 cache line size of 64 bytes and no spinloop pause instruction."
#endif
namespace atomic_queue {
constexpr int CACHE_LINE_SIZE = 64; // TODO: Review that this is the correct value.
static inline void spin_loop_pause() noexcept {}
Expand Down

0 comments on commit e9eb8a0

Please sign in to comment.