holdsLock

abstract fun holdsLock(owner: Any): Boolean (source)

Platform and version requirements: JVM

Checks mutex locked by owner

Return true on mutex lock by owner, false if not locker or it is locked by different owner