This commit is contained in:
Dante
2026-05-22 11:48:42 -07:00
parent 0a5075319f
commit 05f197c291
2665 changed files with 198448 additions and 1 deletions

View File

@ -0,0 +1,35 @@
package eval.luv;
/**
Mutexes.
@see https://aantron.github.io/luv/luv/Luv/Mutex
**/
@:coreType abstract Mutex {
/**
Allocates and initializes a mutex.
**/
static public function init(?recursive:Bool):Result<Mutex>;
/**
Cleans up a mutex.
**/
public function destroy():Void;
/**
Takes the mutex.
The calling thread is blocked until it obtains the mutex.
**/
public function lock():Void;
/**
Tries to take the mutex without blocking.
**/
public function tryLock():Result<Result.NoData>;
/**
Releases the mutex.
**/
public function unlock():Void;
}