mpoeter / xenium

A C++ library providing various concurrent data structures and reclamation schemes.
https://mpoeter.github.io/xenium/
MIT License
488 stars 46 forks source link

Add hardware_pause() for other platforms #32

Open benstadin opened 7 months ago

benstadin commented 7 months ago

In reference to the todo mentioned here:

https://github.com/mpoeter/xenium/blob/ea3b4faa5b5d1b90bbf9dd3422e139480af692a3/xenium/detail/hardware.hpp#L19

Atomic_queue has several definitions for other platforms. I verified these to work on various ARM 32/64 platforms (Raspberry PI 32 and 64, Apple Silicon): https://github.com/max0x7ba/atomic_queue/blob/master/include/atomic_queue/defs.h