From 344cece82b84c2a6227a262d6762b5a83d3a233d Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 10 Jan 2012 22:28:41 +0300 Subject: [PATCH] [mac] Compilation fix --- platform/platform_mac.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/platform_mac.mm b/platform/platform_mac.mm index 73e4bb1137..f422680434 100644 --- a/platform/platform_mac.mm +++ b/platform/platform_mac.mm @@ -133,11 +133,12 @@ void Platform::RunAsync(TFunctor const & fn, Priority p) int priority = DISPATCH_QUEUE_PRIORITY_DEFAULT; switch (p) { - // It seems like this option is not supported in Snow Leopard. - //case EPriorityBackground: priority = DISPATCH_QUEUE_PRIORITY_BACKGROUND; break; case EPriorityDefault: priority = DISPATCH_QUEUE_PRIORITY_DEFAULT; break; case EPriorityHigh: priority = DISPATCH_QUEUE_PRIORITY_HIGH; break; case EPriorityLow: priority = DISPATCH_QUEUE_PRIORITY_LOW; break; + // It seems like this option is not supported in Snow Leopard. + //case EPriorityBackground: priority = DISPATCH_QUEUE_PRIORITY_BACKGROUND; break; + default: priority = INT16_MIN; } dispatch_async_f(dispatch_get_global_queue(priority, 0), new TFunctor(fn), &PerformImpl); }