aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/tid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/util/tid.rs')
-rw-r--r--components/util/tid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/tid.rs b/components/util/tid.rs
index 7351f85f085..9a01a19f6ce 100644
--- a/components/util/tid.rs
+++ b/components/util/tid.rs
@@ -8,10 +8,10 @@ use std::cell::RefCell;
static mut next_tid: AtomicUsize = ATOMIC_USIZE_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<usize>>> = Rc::new(RefCell::new(None)));
/// Every task gets one, that's unique.
-pub fn tid() -> uint {
+pub fn tid() -> usize {
TASK_LOCAL_TID.with(|ref k| {
let ret =
match *k.borrow() {