Merge #903
903: Update signal.rs r=Dirbaio a=bobmcwhirter Allow `poll_wait` to be public so higher-order futures around Signal can be built. Co-authored-by: Bob McWhirter <bmcwhirt@redhat.com>
This commit is contained in:
commit
5790985f9f
@ -69,7 +69,8 @@ impl<T: Send> Signal<T> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn poll_wait(&self, cx: &mut Context<'_>) -> Poll<T> {
|
/// Manually poll the Signal future.
|
||||||
|
pub fn poll_wait(&self, cx: &mut Context<'_>) -> Poll<T> {
|
||||||
critical_section::with(|_| unsafe {
|
critical_section::with(|_| unsafe {
|
||||||
let state = &mut *self.state.get();
|
let state = &mut *self.state.get();
|
||||||
match state {
|
match state {
|
||||||
|
Loading…
Reference in New Issue
Block a user