Skip to content

Commit

Permalink
Merge pull request #4123 from Be-ing/spscq_apple_hack_bsd
Browse files Browse the repository at this point in the history
SPSCQueue: include BSD in hack around LLVM bug
  • Loading branch information
uklotzde committed Jul 19, 2021
2 parents 22102d9 + 3c7f810 commit f48c276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rigtorp/SPSCQueue/include/rigtorp/SPSCQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ template <typename T, typename Allocator = std::allocator<T>> class SPSCQueue {
// on macOS there is a bug in libc++ where __cpp_lib_hardware_interference_size
// is defined but std::hardware_destructive_interference_size is not actually implemented
// https://bugs.llvm.org/show_bug.cgi?id=41423
#if defined(__cpp_lib_hardware_interference_size) && ! defined(__APPLE__)
#if defined(__cpp_lib_hardware_interference_size) && ! defined(__APPLE__) && ! defined(__BSD__)
static constexpr size_t kCacheLineSize =
std::hardware_destructive_interference_size;
#else
Expand Down

0 comments on commit f48c276

Please sign in to comment.