Skip to content

Commit 5a594f7

Browse files
committed
SeqCst->Relaxed for xous set_nonblocking.
The SeqCst wasn't synchronizing with anything. Relaxed is enough.
1 parent 69a4d77 commit 5a594f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/xous/net/tcpstream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ impl TcpStream {
406406
}
407407

408408
pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()> {
409-
self.nonblocking.store(nonblocking, Ordering::SeqCst);
409+
self.nonblocking.store(nonblocking, Ordering::Relaxed);
410410
Ok(())
411411
}
412412
}

0 commit comments

Comments
 (0)