std: fix lint on SGX
This commit is contained in:
parent
dbda4f91aa
commit
10b6ca139e
@ -64,7 +64,7 @@ pub fn lock_var_mut(&mut self) -> &mut T {
|
|||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub enum NotifiedTcs {
|
pub enum NotifiedTcs {
|
||||||
Single(Tcs),
|
Single(Tcs),
|
||||||
All { count: NonZero<usize> },
|
All { _count: NonZero<usize> },
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An RAII guard that will notify a set of target threads as well as unlock
|
/// An RAII guard that will notify a set of target threads as well as unlock
|
||||||
@ -232,7 +232,10 @@ pub fn notify_all<T>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(count) = NonZero::new(count) {
|
if let Some(count) = NonZero::new(count) {
|
||||||
Ok(WaitGuard { mutex_guard: Some(guard), notified_tcs: NotifiedTcs::All { count } })
|
Ok(WaitGuard {
|
||||||
|
mutex_guard: Some(guard),
|
||||||
|
notified_tcs: NotifiedTcs::All { _count: count },
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
Err(guard)
|
Err(guard)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user