We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9050a28 commit 3996e3eCopy full SHA for 3996e3e
core/src/thread_parker/sgx.rs
@@ -54,8 +54,8 @@ impl ThreadParker {
54
#[inline]
55
pub fn park(&self) {
56
while self.parked.load(Ordering::Acquire) {
57
- let res = usercalls::wait(EV_UNPARK, WAIT_INDEFINITE).expect("wait returned error");
58
- assert_eq!(res & EV_UNPARK, EV_UNPARK);
+ let result = usercalls::wait(EV_UNPARK, WAIT_INDEFINITE);
+ debug_assert_eq!(result.expect("wait returned error") & EV_UNPARK, EV_UNPARK);
59
}
60
61
0 commit comments