Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/cmake-gcc-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
build_type: Release
compiler: { c: clang, cpp: clang++ }

# --- macOS ---
- os: macos-latest
build_type: Release
compiler: { c: clang, cpp: clang++ }

# --- Windows ---
- os: windows-latest
build_type: Release
Expand All @@ -75,6 +80,11 @@ jobs:
sudo apt-get update
sudo apt-get install --yes -qq libboost-test-dev

- name: Install boost on macos
if: startsWith(matrix.os, 'macos')
run: |
brew install boost

- name: Install boost on windows
if: startsWith(matrix.os, 'windows') && matrix.compiler.cpp == 'cl'
uses: MarkusJx/install-boost@v2.6.0
Expand All @@ -84,10 +94,10 @@ jobs:
platform_version: 2025
toolset: msvc

- name: Configure CMake Ubuntu
- name: Configure CMake Unix (Linux/macOS)
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.compiler.cpp }}
Expand Down
4 changes: 4 additions & 0 deletions include/atomic_queue/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ ATOMIC_QUEUE_SINLINE void spin_loop_pause() noexcept {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM64)
#if defined(__APPLE__) && defined(__aarch64__)
constexpr int CACHE_LINE_SIZE = 128;
#else
constexpr int CACHE_LINE_SIZE = 64;
#endif
ATOMIC_QUEUE_SINLINE void spin_loop_pause() noexcept {
#if (defined(__ARM_ARCH_6K__) || \
defined(__ARM_ARCH_6Z__) || \
Expand Down
Loading