Re: [swift-corelibs-dev] Setting property "maxConcurrentOperationCount = 1" of NSOperation fails to execute operations using OpenSource Foundation.

2016-05-05 Thread Philippe Hausler via swift-corelibs-dev
Hmm that seems unfortunate. I wonder if the serial creation is due to an unwrapped optional? var attr: dispatch_queue_attr_t? instead might do the trick… or alternatively we could just let the underlying queue be concurrent all the time and enforce the max ops via making the semaphore always in

[swift-corelibs-dev] Installing swift toolchain issues

2016-05-05 Thread Jeyaram Jeyaraj via swift-corelibs-dev
Hi All, I'm trying to follow the instructions here https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md It indicates to install the current Swift toolchain and points to this link: https://swift.org/download/#latest-development-snapshots Now if I scroll down I se

[swift-corelibs-dev] Setting property "maxConcurrentOperationCount = 1" of NSOperation fails to execute operations using OpenSource Foundation.

2016-05-05 Thread Mamatha Busi via swift-corelibs-dev
Hello   Code snippet: ———      let operation1 : NSBlockOperation = NSBlockOperation (block: {             sleep(1)             print("Opertion1")         })         let operation2 : NSBlockOperation = NSBlockOperation (block: {             sleep(1)             print("Opertion2”)