locking

context(env: JniEnv)
inline fun <T> Awt.locking(block: () -> T): T(source)

Locks the entire AWT, executes block and then release lock.

Since

1.4


inline fun <T> DrawingSurface.locking(block: context(JniEnv) () -> T): T(source)

Locks the surface and executes block, then release lock.

Throw IllegalStateException if lock fails.