Skip to content

Commit

Permalink
SPSCQueue: include BSD in hack around LLVM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Jul 19, 2021
1 parent 5a700ab commit 3c7f810
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 3c7f810

Please sign in to comment.