We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdc9508 commit 1d180caCopy full SHA for 1d180ca
library/std/src/sys/itron/condvar.rs
@@ -192,7 +192,7 @@ mod waiter_queue {
192
let insert_after = {
193
let mut cursor = head.last;
194
loop {
195
- if waiter.priority <= cursor.as_ref().priority {
+ if waiter.priority >= cursor.as_ref().priority {
196
// `cursor` and all previous waiters have the same or higher
197
// priority than `current_task_priority`. Insert the new
198
// waiter right after `cursor`.
0 commit comments