[squeak-dev] building Hydra

John M McIntosh johnmci at smalltalkconsulting.com
Wed Apr 30 04:10:37 UTC 2008


Ah, thank you, if you read the fine print, it's actually  
OSAtomicCompareAndSwap32Barrier is what is called for.

On Apr 29, 2008, at 3:09 PM, Tom Rushworth wrote:

> For InterlockedCompareExchange:
>
>   Mac - look in /Developer/SDKs/*/usr/include/libkern/OSAtomic.h for
>      OSAtomicCompareAndSwap32(___)
>   and friends.
>
>   Linux - last I looked (fall 2007) you pretty much had to roll your  
> own,
>   since it isn't a standard library function.  I googled and
>   found someone's inline asm code for a compare and swap.  I
>   can't find where I put it at the moment, you can probably
>   find it just as easily googling for it yourself.
>
> No idea about ioWakeUp().

--
= 
= 
= 
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
= 
= 
= 
========================================================================





More information about the Squeak-dev mailing list