1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-24 20:16:41 +00:00

Fiddles with the preprocessor to make kiosk mode match other OSes even on macOS.

This commit is contained in:
Thomas Harte
2021-06-13 19:28:05 -04:00
parent 95a52a9f62
commit d18a537509
8 changed files with 26 additions and 17 deletions
+3 -2
View File
@@ -16,8 +16,9 @@
#include <memory>
#include <thread>
#ifdef __APPLE__
#if defined(__APPLE__) && !defined(IGNORE_APPLE)
#include <dispatch/dispatch.h>
#define USE_GCD
#endif
namespace Concurrency {
@@ -47,7 +48,7 @@ class AsyncTaskQueue {
void flush();
private:
#ifdef __APPLE__
#ifdef USE_GCD
dispatch_queue_t serial_dispatch_queue_;
#else
std::unique_ptr<std::thread> thread_;