kumulant

stream

Types

Link copied to clipboard
interface Mutex

Mutual-exclusion lock used by stats whose update logic spans multiple cells or multiple steps and therefore can't be made elementwise atomic. Create one with Mutex.

Functions

Link copied to clipboard
fun Mutex(concurrent: Boolean = true): Mutex

Create a platform mutex, or a no-op lock with zero overhead when concurrent is false and a single thread owns the guarded state. Do not re-enter the same mutex while holding it; re-entry is unsupported across platforms.