Skip to content

Commit

Permalink
Fix POS.
Browse files Browse the repository at this point in the history
  • Loading branch information
aoli-al committed Apr 1, 2024
1 parent 1ed747a commit 9b3c8a6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class POSScheduler(val rand: Random) : Scheduler {
threadPriority.keys.removeIf {
val pendingOp = it.pendingOperation
val res =
if (it != next && pendingOp is RacingOperation && it in threads) {
if (it == next) {
true
} else if (pendingOp is RacingOperation && it in threads) {
pendingOp.isRacing(next.pendingOperation)
} else {
false
Expand Down

0 comments on commit 9b3c8a6

Please sign in to comment.