Skip to content

Commit

Permalink
SonarCloud and use indexed accessor in Mutex.kt.
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth J. Shackleton <[email protected]>
  • Loading branch information
kennethshackleton committed Sep 14, 2023
1 parent f1d162d commit 45cd7db
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 45cd7db

Please sign in to comment.