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

allNativeMain.org.kodein.db.impl.utils.lockNative.kt Maven / Gradle / Ivy

The newest version!
package org.kodein.db.impl.utils


public interface PhonyLock {
    public companion object : PhonyLock {
        public override fun lock() {}
        public override fun unlock() {}
        public override fun writeLock(): Lock = PhonyLock
        public override fun readLock(): Lock = PhonyLock
    }

    public fun lock()
    public fun unlock()
    public fun writeLock(): Lock
    public fun readLock(): Lock
}

public actual typealias Lock = PhonyLock
internal actual fun newLock(): Lock = PhonyLock

public actual typealias RWLock = PhonyLock
internal actual fun newRWLock(): Lock = PhonyLock




© 2015 - 2024 Weber Informatics LLC | Privacy Policy