unlock

abstract fun unlock(owner: Any? = null): Unit (source)

Platform and version requirements: JVM

Unlocks this mutex. Throws IllegalStateException if invoked on a mutex that is not locked.

Parameters

owner - Optional owner token for debugging. When owner is specified (non-null value) and this mutex was locked with the different token (by identity), this function throws IllegalStateException.