We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 644b445 commit 6911af9Copy full SHA for 6911af9
library/std/src/sys/hermit/mutex.rs
@@ -48,7 +48,7 @@ impl<T> Spinlock<T> {
48
let ticket = self.queue.fetch_add(1, Ordering::SeqCst) + 1;
49
let mut counter: u16 = 0;
50
while self.dequeue.load(Ordering::SeqCst) != ticket {
51
- counter = counter + 1;
+ counter += 1;
52
if counter < 100 {
53
hint::spin_loop();
54
} else {
0 commit comments