Skip to content

Commit

Permalink
Merge pull request #479 from kennethshackleton/sonarcloud-indexed-acc…
Browse files Browse the repository at this point in the history
…essor

SonarCloud and use indexed accessor in Mutex.kt.
  • Loading branch information
kennethshackleton authored Sep 14, 2023
2 parents f1d162d + 45cd7db commit 06f5cd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ internal class Mutex {
}

fun unlock() {
isLockedUpdater.set(this, 0)
isLockedUpdater[this] = 0
LockSupport.unpark(waiters.peek())
}

Expand Down

0 comments on commit 06f5cd0

Please sign in to comment.