All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.kotlinx.atomicfu.locks.Synchronized.common.kt Maven / Gradle / Ivy

There is a newer version: 0.26.1
Show newest version
package kotlinx.atomicfu.locks

public expect open class SynchronizedObject() // marker abstract class

public expect fun reentrantLock(): ReentrantLock

public expect class ReentrantLock {
    fun lock(): Unit
    fun tryLock(): Boolean
    fun unlock(): Unit
}

public expect inline fun  ReentrantLock.withLock(block: () -> T): T

public expect inline fun  synchronized(lock: SynchronizedObject, block: () -> T): T




© 2015 - 2025 Weber Informatics LLC | Privacy Policy