Re:Atomics in Objective-C
by fleitz on Tuesday May 05, 2015 @04:27PM
(#9494753)
This is called a semaphore, it's already implemented in GCD.
Also, why talk about performance and then make obj-c method calls...?
It's quite easy using NSProxy to create a throttler that will wrap any object, then you can abstract throttling from the behavior of the underlying object.
Also, why talk about performance and then make obj-c method calls...?
It's quite easy using NSProxy to create a throttler that will wrap any object, then you can abstract throttling from the behavior of the underlying object.
https://developer.apple.com/library/mac/documentation/Genera...