Available on macro
Read-write locks.
See also:
https://aantron.github.io/luv/luv/Luv/Rwlock
staticdestroy(this:RwLock):Void
Cleans up a read-write lock.
staticinit():Result<RwLock>
Allocates and initializes a read-write lock.
staticrdLock(this:RwLock):Void
Takes a read-write lock for reading (shared access).
staticrdTryLock(this:RwLock):Result<NoData>
Tries to take a read-write lock for reading without blocking.
staticrdUnlock(this:RwLock):Void
Releases a read-write lock after it was taken for reading.
staticwrLock(this:RwLock):Void
Takes a read-write lock for writing (exclusive access).
staticwrTryLock(this:RwLock):Result<NoData>
Tries to take a read-write lock for writing without blocking.
staticwrUnlock(this:RwLock):Void
Releases a read-write lock after it was taken for writing.