holdsLock

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

Checks whether this mutex is locked by the specified owner.

Return

true when this mutex is locked by the specified owner; false if the mutex is not locked or locked by another owner.