When working on my boids simulator, I ran into the issue of not knowing how to do a lock free write back to the main bird array [which is something I wanted for performance reasons].
This is a small example I implemented over the weekend to see if its possible.
Build: clang -lpthread -lstdc++ lockfree.cpp rustc main.rs
Tested on rustc 0.13.0-nightly (88b6e93d3 2014-10-31 23:36:48 +0000)