SeqCst->Relaxed for xous set_nonblocking.

The SeqCst wasn't synchronizing with anything. Relaxed is enough.
This commit is contained in:
Mara Bos 2024-03-19 15:08:04 +01:00
parent 69a4d77d67
commit 5a594f7bcd

View File

@ -406,7 +406,7 @@ impl TcpStream {
}
pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()> {
self.nonblocking.store(nonblocking, Ordering::SeqCst);
self.nonblocking.store(nonblocking, Ordering::Relaxed);
Ok(())
}
}