Skip to content

Commit

Permalink
use std AtomicUsize instead of loom AtomicUsize
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Sep 28, 2023
1 parent d4191a8 commit 95368e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tokio/src/runtime/task/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use crate::future::Future;
use crate::loom::cell::UnsafeCell;
use crate::loom::sync::atomic::AtomicUsize;
use crate::loom::sync::{Mutex, MutexGuard};
use crate::runtime::task::{JoinHandle, LocalNotified, Notified, Schedule, Task};
use crate::util::linked_list::{Link, LinkedList};
use std::sync::atomic::AtomicUsize;

use crate::loom::sync::atomic::{AtomicBool, Ordering};
use std::marker::PhantomData;
Expand Down
2 changes: 1 addition & 1 deletion tokio/src/runtime/tests/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ impl Runtime {
}

drop(core);
assert!(self.0.owned.is_closed());
assert!(self.0.owned.is_shutdown());
assert!(self.0.owned.is_empty());
}
}
Expand Down

0 comments on commit 95368e5

Please sign in to comment.