commonMain.kotlinx.atomicfu.locks.Synchronized.common.kt Maven / Gradle / Ivy
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