We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8394dbb commit 338fc7dCopy full SHA for 338fc7d
src/libstd/sys/wasi/thread.rs
@@ -31,7 +31,7 @@ impl Thread {
31
assert!(nanos <= u64::max_value() as u128);
32
33
let clock = wasi::raw::__wasi_subscription_u_clock_t {
34
- identifier: 0,
+ identifier: 0x0123_45678,
35
clock_id: wasi::CLOCK_MONOTONIC,
36
timeout: nanos as u64,
37
precision: 0,
@@ -47,7 +47,7 @@ impl Thread {
47
let n = wasi::poll_oneoff(&in_, &mut out).unwrap();
48
let wasi::Event { userdata, error, type_, .. } = out[0];
49
match (n, userdata, error) {
50
- (1, 0, 0) if type_ == wasi::EVENTTYPE_CLOCK => {}
+ (1, 0x0123_45678, 0) if type_ == wasi::EVENTTYPE_CLOCK => {}
51
_ => panic!("thread::sleep(): unexpected result of poll_oneof"),
52
}
53
0 commit comments