Blei/claytracks — comment on commit b9d81637595cd0920463a2b5807229c20305471d
File: parallel/parallel.unix.clay line 19
By jckarter:

Glad you got this working. There are primitives in the compiler for compare-exchange and the other atomic operators you might be able to use instead of inline LLVM: https://github.com/jckarter/clay/blob/master/compiler/src/clay.hpp#L2399 Try `atomicCompareExchange(OrderSeqCst, &dest, old, new)`.