Skip to content

Commit

Permalink
Enable GCD on non-Linux POSIX if not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningEnlightenment committed Sep 6, 2022
1 parent 9ae8d87 commit 4d0684c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/llfio/v2.0/detail/impl/dynamic_thread_pool_group.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Distributed under the Boost Software License, Version 1.0.
#include <condition_variable>
#include <thread>
#elif __has_include(<dispatch/dispatch.h>)
// enable GCD on non-Linux if available but not configured
#ifndef LLFIO_DYNAMIC_THREAD_POOL_GROUP_USING_GCD
#define LLFIO_DYNAMIC_THREAD_POOL_GROUP_USING_GCD 1
#endif
#include <dispatch/dispatch.h>
#else
#error dynamic_thread_pool_group requires Grand Central Dispatch (libdispatch) on non-Linux POSIX.
Expand Down

0 comments on commit 4d0684c

Please sign in to comment.