diff options
Diffstat (limited to 'components/util/tid.rs')
-rw-r--r-- | components/util/tid.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/util/tid.rs b/components/util/tid.rs index 62723941fcb..e52dbf7fd61 100644 --- a/components/util/tid.rs +++ b/components/util/tid.rs @@ -2,13 +2,13 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use std::sync::atomic::{AtomicUint, INIT_ATOMIC_UINT, Ordering}; +use std::sync::atomic::{AtomicUint, ATOMIC_UINT_INIT, Ordering}; use std::rc::Rc; use std::cell::RefCell; -static mut next_tid: AtomicUint = INIT_ATOMIC_UINT; +static mut next_tid: AtomicUint = ATOMIC_UINT_INIT; -thread_local!(static TASK_LOCAL_TID: Rc<RefCell<Option<uint>>> = Rc::new(RefCell::new(None))) +thread_local!(static TASK_LOCAL_TID: Rc<RefCell<Option<uint>>> = Rc::new(RefCell::new(None))); /// Every task gets one, that's unique. pub fn tid() -> uint { |