rollup merge of #20315: alexcrichton/std-sync
Conflicts: src/libstd/rt/exclusive.rs src/libstd/sync/barrier.rs src/libstd/sys/unix/pipe.rs src/test/bench/shootout-binarytrees.rs src/test/bench/shootout-fannkuch-redux.rs
This commit is contained in:
commit
009ec5d2b0
45 changed files with 167 additions and 792 deletions
|
@ -211,7 +211,7 @@ impl Timer {
|
|||
// instead of ()
|
||||
HELPER.boot(|| {}, helper);
|
||||
|
||||
static ID: atomic::AtomicUint = atomic::INIT_ATOMIC_UINT;
|
||||
static ID: atomic::AtomicUint = atomic::ATOMIC_UINT_INIT;
|
||||
let id = ID.fetch_add(1, atomic::Relaxed);
|
||||
Ok(Timer {
|
||||
id: id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue