KiteLock

actual class KiteLock

A minimal reentrant mutual-exclusion lock (T-16). JVM/Android wrap ReentrantLock, native targets a reentrant atomic spinlock, JS/Wasm are single-threaded no-ops. Use through withLock.

Engine-internal plumbing that must cross module boundaries (the handlers synchronize their document caches with it); not a public concurrency API.

expect class KiteLock

A minimal reentrant mutual-exclusion lock (T-16). JVM/Android wrap ReentrantLock, native targets a reentrant atomic spinlock, JS/Wasm are single-threaded no-ops. Use through withLock.

Engine-internal plumbing that must cross module boundaries (the handlers synchronize their document caches with it); not a public concurrency API.

actual class KiteLock

Single-threaded target: locking is a no-op.

actual class KiteLock

A minimal reentrant mutual-exclusion lock (T-16). JVM/Android wrap ReentrantLock, native targets a reentrant atomic spinlock, JS/Wasm are single-threaded no-ops. Use through withLock.

Engine-internal plumbing that must cross module boundaries (the handlers synchronize their document caches with it); not a public concurrency API.

actual class KiteLock

Reentrant spinlock over a single atomic owner word. POSIX mutex structs differ per native family (structs on Apple/Linux, integer typedefs on MinGW), so a portable pure-atomics lock beats four platform actuals here. Spinning is acceptable because every critical section under this lock is a few map operations; the parse work itself runs outside it (T-16). After a short spin budget the waiter yields: an empty spin on Darwin's QoS scheduler can starve a lower-priority holder scheduled on the same core (the failure mode that got OSSpinLock deprecated).

actual class KiteLock

Single-threaded target: locking is a no-op.

actual class KiteLock

Single-threaded target: locking is a no-op.

Constructors

Link copied to clipboard
actual constructor()
expect constructor()
actual constructor()
actual constructor()
actual constructor()
actual constructor()
actual constructor()

Functions

Link copied to clipboard
actual fun lock()
expect fun lock()
actual fun lock()
actual fun lock()
actual fun lock()
actual fun lock()
actual fun lock()
Link copied to clipboard
actual fun unlock()
expect fun unlock()
actual fun unlock()
actual fun unlock()
actual fun unlock()
actual fun unlock()
actual fun unlock()
Link copied to clipboard
inline fun <T> KiteLock.withLock(block: () -> T): T