Native synchronization primitives for JavaScript.
npm i bare-atomics
Options include:
{
recursive: false
}Options are the same as new Mutex().
A SharedArrayBuffer with the underlying mutex handle.
Whether or not the current thread currently holds the mutex.
A SharedArrayBuffer with the underlying semaphore handle.
A SharedArrayBuffer with the underlying condition handle.
A SharedArrayBuffer with the underlying barrier handle.
Apache-2.0