mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Use std::sync::atomic::Ordering explicitly.
This commit is contained in:
parent
524966e3af
commit
faefb27f3e
8 changed files with 22 additions and 22 deletions
|
@ -56,7 +56,7 @@ use std::mem;
|
|||
use std::fmt;
|
||||
use std::iter::Zip;
|
||||
use std::raw;
|
||||
use std::sync::atomic::{AtomicUint, SeqCst};
|
||||
use std::sync::atomic::{AtomicUint, Ordering};
|
||||
use std::slice::MutItems;
|
||||
use style::computed_values::{clear, empty_cells, float, position, text_align};
|
||||
use style::ComputedValues;
|
||||
|
@ -781,7 +781,7 @@ impl fmt::Show for BaseFlow {
|
|||
write!(f,
|
||||
"@ {}, CC {}, ADC {}",
|
||||
self.position,
|
||||
self.parallel.children_count.load(SeqCst),
|
||||
self.parallel.children_count.load(Ordering::SeqCst),
|
||||
self.abs_descendants.len())
|
||||
}
|
||||
}
|
||||
|
@ -830,7 +830,7 @@ impl<E, S: Encoder<E>> Encodable<S, E> for BaseFlow {
|
|||
#[unsafe_destructor]
|
||||
impl Drop for BaseFlow {
|
||||
fn drop(&mut self) {
|
||||
if self.ref_count.load(SeqCst) != 0 {
|
||||
if self.ref_count.load(Ordering::SeqCst) != 0 {
|
||||
panic!("Flow destroyed before its ref count hit zero—this is unsafe!")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue