Commit 82659582 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

workaround for yet another Apple quirk

parent 549631a3
Pipeline #81517 passed with stages
in 17 minutes and 34 seconds
...@@ -111,11 +111,12 @@ template <typename T> class concurrent_queue ...@@ -111,11 +111,12 @@ template <typename T> class concurrent_queue
class thread_pool class thread_pool
{ {
private: private:
#if __cpp_lib_hardware_interference_size >= 201603 //FIXME: temporary ... OSX seems to set the macro, but not to have the variable
struct alignas(std::hardware_destructive_interference_size) worker //#if __cpp_lib_hardware_interference_size >= 201603
#else // struct alignas(std::hardware_destructive_interference_size) worker
struct alignas(64) worker struct alignas(64) worker
#endif //#endif
{ {
std::thread thread; std::thread thread;
std::condition_variable work_ready; std::condition_variable work_ready;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment