mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
task -> thread
This commit is contained in:
parent
f00532bab0
commit
1f02c4ebbb
119 changed files with 1209 additions and 1207 deletions
|
@ -10,7 +10,7 @@ static NEXT_TID: AtomicUsize = ATOMIC_USIZE_INIT;
|
|||
|
||||
thread_local!(static TASK_LOCAL_TID: Rc<RefCell<Option<usize>>> = Rc::new(RefCell::new(None)));
|
||||
|
||||
/// Every task gets one, that's unique.
|
||||
/// Every thread gets one, that's unique.
|
||||
pub fn tid() -> usize {
|
||||
TASK_LOCAL_TID.with(|ref k| {
|
||||
let ret =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue