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 2a2087c commit 8651f6dCopy full SHA for 8651f6d
crates/runtime/io/src/worker.rs
@@ -94,11 +94,13 @@ where
94
95
fn execute(self) -> future::FutureResult<(Self, bool), ()> {
96
{
97
+ let mut lock = self.wait_mutex.lock();
98
if self.deleting.load(AtomicOrdering::SeqCst) {
99
+ std::mem::drop(lock);
100
return future::ok((self, false)); // Loop::Break(());// futures::future::err(Error::new(ErrorKind::Other, "shutting down worker")); // self; // Ok(Loop::Break(self));
101
//return Ok() //Ok(Loop::Break(()));
102
}
- let mut lock = self.wait_mutex.lock();
103
+
104
self.wait.wait(&mut lock);
105
106
0 commit comments