We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5066a25 commit 6d6521eCopy full SHA for 6d6521e
1 file changed
src/runtime/reactor.rs
@@ -40,8 +40,8 @@ impl AsyncPollable {
40
}
41
/// Create a Future that waits for the Pollable's readiness.
42
pub fn wait_for(&self) -> WaitFor {
43
- use std::sync::atomic::{AtomicUsize, Ordering};
44
- static COUNTER: AtomicUsize = AtomicUsize::new(0);
+ use std::sync::atomic::{AtomicU64, Ordering};
+ static COUNTER: AtomicU64 = AtomicU64::new(0);
45
let unique = COUNTER.fetch_add(1, Ordering::Relaxed);
46
WaitFor {
47
waitee: Waitee {
@@ -58,7 +58,7 @@ struct Waitee {
58
/// This needs to be a reference counted registration, because it may outlive the AsyncPollable
59
/// &self that it was created from.
60
pollable: AsyncPollable,
61
- unique: usize,
+ unique: u64,
62
63
64
/// A Future that waits for the Pollable's readiness.
0 commit comments