D-Programming-Language/druntime — pull request #259 by alexrp (2012-07-03 21:57:36+00:00)
Title: Add atomicFence() function to core.atomic.

Adds an `atomicFence()` function to `core.atomic` which performs a full (load/store) memory fence on systems where it is relevant. Note that it is *not* marked `pure` as I believe this to be incorrect, seeing as it actively affects the semantics of the rest of the program.

It's also interesting to note that this function is a prime candidate for a `@force_inline` annotation...