On 12-12-09 10:51 PM, John Ralls wrote:
>
> On Dec 9, 2012, at 4:38 PM, Behdad Esfahbod <[email protected]> wrote:
>
>> On 12-12-07 07:54 PM, John Ralls wrote:
>>> OSAtomicCompareAndSwapPtrBarrier, used in a macro definition in
>>> hb_atomic_private.hh, didn't appear until 10.5.
>>
>> Was there a non-barrier version available at least? I don't have access to
>> 10.4, and online docs leave a lot to be desired. Can you send a patch to use
>> a (OSMemoryBarrier(), OSAtomicCompareAndSwapPtr(...)) fallback?
>
> No, both ptr versions (barrier and non-barrier) were introduced in 10.5
Ok, looks like something like this should work then:
if (sizeof (void *) == 4)
OSAtomicCompareAndSwap32 (...)
else
OSAtomicCompareAndSwap64 (...)
I'll give it a try. Is 10.4 the earliest you want to support?
b
> http://developer.apple.com/library/mac/#documentation/System/Reference/OSAtomic_header_reference/Reference/reference.html
_______________________________________________
gtk-i18n-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list