#310 new
John Ralls

DISPATCH_QUEUE_CONCURRENT is Lion-only

Reported by John Ralls | March 13th, 2012 @ 09:50 PM

Compiling on Snow Leopard with XCode 4.2 fails with

/Users/john/gitx/PBGitRepository.m:37:2: error: use of undeclared identifier 'DISPATCH_QUEUE_CONCURRENT' [3]
         dispatch_once(&onceToken, ^{
         ^
/usr/include/dispatch/once.h:63:96: note: instantiated from:
 #define dispatch_once(x, ...) do { if (__builtin_expect(*(x), ~0l) != ~0l) dispatch_once((x), (__VA_ARGS__)); } while (0)
                                                                                                ^
/Users/john/gitx/PBGitRepository.m:38:53: note: instantiated from:
                 work_queue = dispatch_queue_create("PBWorkQueue", DISPATCH_QUEUE_CONCURRENT);
                                                                   ^
1 error generated.

It seems that DISPATCH_QUEUE_CURRENT was introduced in Lion. Is it your intent to support only Lion and later?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

GitX is the nice-looking gitk clone for OS X

People watching this ticket

Pages