What is queue attributes in dispatch_queue_create

Viewed 5587

In Apple's sample code, AVCam-iOS: Using AVFoundation to Capture Images and Movies, I notice this following line:

// Communicate with the session and other session objects on this queue.
self.sessionQueue = dispatch_queue_create( "session queue", DISPATCH_QUEUE_SERIAL );

And I want to know what the second parameter is about and what other options do we have other than DISPATCH_QUEUE_SERIAL?

And what makes it confusing is that in other Apple documentation, it says that the second parameter is reserved and should be set to NULL. It seems either the documentation is out of date, can anyone explain what the second parameter is supposed to be?

The dispatch_queue_create function takes two parameters: the queue name and a set of queue attributes. The queue attributes are reserved for future use and should be NULL. Concurrency Programming Guide

1 Answers
Related