dispatch_workloop_create
Creates a new workloop with the specified label.
Declaration
extern dispatch_workloop_t dispatch_workloop_create(const char *label);Parameters
- label:
A string label to attach to the queue to uniquely identify it in debugging tools such as Instruments,
sample, stackshots, and crash reports. Because apps, libraries, and frameworks can all create their own dispatch queues, a reverse-DNS naming style (com.example.myqueue) is recommended. This parameter is optional and can beNULL.
Return Value
The newly created workloop.
Discussion
The returned workloop is active, and you may submit blocks to it immediately.