Gabriel Wicke <wi...@wikidev.net> writes: > On Tue, 17 Aug 2010 01:09:41 -0400, Gregory Collins wrote: > >> Hello all, >> >> Does GHC expose any primitives for things like atomic compare-and-swap? >> I can't seem to find anything in the docs. > > Hello Gregory, > > I have recently published experimental and low-level FFI bindings to > GCC's atomic primitives including CAS as 'bits-extras' on Hackage [1]. > Instances for Int and Word types are included. > > This is likely lower-level than what you are after, but might still be > handy for experimentation.
On OSX libgcc_s is only supplied as a dynamic library, which GHC doesn't seem to be able to link with. Any ideas would be appreciated. G -- Gregory Collins <g...@gregorycollins.net> _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe