This commit is contained in:
Dante
2026-05-21 20:15:16 -07:00
parent fe8bd1e307
commit add4d4cc87
2664 changed files with 198448 additions and 0 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;
}