Le 9 déc. 2012 à 02:27, Richard Heard a écrit :
> Greg,
>
> So, from what you are saying, either of these snippets should be valid, right?
>
>> +(id)sharedInstance{
>>static id _sharedInstance = nil;
>>
>> …
>>OSMemoryBarrier();
>>return _sharedInstance;
>> }
OSMemoryBarrier
On Dec 9, 2012, at 1:27 AM, Kyle Sluder wrote:
> If dispatch_once() really is unsuitable for use with a dispatch_once_t
> stored in Objective-C instance storage, then the correct example in the
> paper I've cited might be a sufficient workaround.
I thought we had established that, in all sane use
On Dec 9, 2012, at 6:53 AM, Ken Thomases wrote:
> On Dec 9, 2012, at 1:27 AM, Kyle Sluder wrote:
>
>> If dispatch_once() really is unsuitable for use with a dispatch_once_t
>> stored in Objective-C instance storage, then the correct example in the
>> paper I've cited might be a sufficient workar
On Dec 9, 2012, at 10:37 AM, Kyle Sluder wrote:
> On Dec 9, 2012, at 6:53 AM, Ken Thomases wrote:
>
>> On Dec 9, 2012, at 1:27 AM, Kyle Sluder wrote:
>>
>>> If dispatch_once() really is unsuitable for use with a dispatch_once_t
>>> stored in Objective-C instance storage, then the correct exampl