> It's not. Locks are created by using CAS, not the other way around. > On a x86 machine the swap basically compiles down to a single assembly > code instruction: >
Eh, let me clarify that....locks do exist on x86, it's just that they only lock a single assembly instruction. The complete list of instructions that can be locked is here: http://jsimlo.sk/docs/cpu/index.php/lock.html -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en