Skip to content

Commit 2b29c96

Browse files
committed
SeqCst->Relaxed for xous set_nonblocking.
The SeqCst wasn't synchronizing with anything. Relaxed is enough.
1 parent f88a796 commit 2b29c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)