stabilize atomics (now atomic)

This commit stabilizes the `std::sync::atomics` module, renaming it to
`std::sync::atomic` to match library precedent elsewhere, and tightening
up behavior around incorrect memory ordering annotations.

The vast majority of the module is now `stable`. However, the
`AtomicOption` type has been deprecated, since it is essentially unused
and is not truly a primitive atomic type. It will eventually be replaced
by a higher-level abstraction like MVars.

Due to deprecations, this is a:

[breaking-change]
This commit is contained in:
Aaron Turon 2014-08-04 15:42:36 -07:00
parent 9de20198ae
commit 68bde0a073
36 changed files with 366 additions and 308 deletions

View file

@ -12,7 +12,7 @@
#![feature(globs)]
use std::sync::atomics::*;
use std::sync::atomic::*;
use std::ptr;
fn main() {