Package-level declarations
Types
Link copied to clipboard
A thread-safe MutableMap.
Link copied to clipboard
A thread-safe MutableSet.
Link copied to clipboard
A Lock that can be closed safely even while another thread might still be using it.
Lock is backed by java.util.concurrent.locks.ReentrantLock on the JVM and Android. There is no native resource to free, so close() there is a no-op only flipping closed.
On Linux and mingw, Lock.close() calls pthread_mutex_destroy unconditionally. That is undefined behavior while another thread is still locking or unlocking it. Stately's Lock does not check for this, which caused test failures on Linux. Apple and mingw silently ignore the same misuse.
JS and wasmJs are single-threaded. There is nothing to actually lock. Only the closed check remains meaningful.