forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
12
Kha/Tools/windows_x64/std/python/lib/threading/Condition.hx
Normal file
12
Kha/Tools/windows_x64/std/python/lib/threading/Condition.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package python.lib.threading;
|
||||
|
||||
@:pythonImport("threading", "Condition")
|
||||
extern class Condition {
|
||||
function new(?lock:haxe.extern.EitherType<Lock, RLock>):Void;
|
||||
function acquire(?blocking:Bool, ?timeout:Float):Bool;
|
||||
function release():Void;
|
||||
function wait(?timeout:Float):Bool;
|
||||
function wait_for(predicate:()->Bool, ?timeout:Float):Bool;
|
||||
function notify(n:Int = 1):Void;
|
||||
function notify_all():Void;
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
package python.lib.threading;
|
||||
|
||||
@:noDoc
|
||||
@:pythonImport("threading", "Semaphore")
|
||||
extern class Semaphore {
|
||||
function new(value:Int);
|
||||
function acquire(blocking:Bool = true, ?timeout:Float):Bool;
|
||||
function release(n:Int = 1):Void;
|
||||
}
|
||||
Reference in New Issue
Block a user