This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)testDispatchConcurrentExecutionWithNamedQueuesRaw { | |
| let expectation = [self expectationWithDescription:@"Concurrent execution must happen"]; | |
| let semaphore = dispatch_semaphore_create(0); | |
| // global queue, concurrent | |
| let attributes = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_CONCURRENT, QOS_CLASS_DEFAULT, 0); | |
| let defaultQueue = dispatch_queue_create("com.pspdfkit.default-concurrent", attributes); | |
| // serial sub-queues that dispatch to concurrent queue | |
| let queue1 = dispatch_queue_create("com.pspdfkit.queue1", DISPATCH_QUEUE_SERIAL); |