See https://github.com/HaxeFoundation/haxe/issues/10948
@@ -1,5 +1,6 @@
package sys.thread;
+@:noDoc
@:coreApi
class Semaphore {
var m:Dynamic;
final native:cs.system.threading.Semaphore;
@:coreApi class Semaphore {
final native:eval.luv.Semaphore;
abstract Semaphore(hl.Abstract<"hl_semaphore">) {
public function new(value:Int):Void {
this = alloc(value);
@@ -2,6 +2,7 @@ package sys.thread;
import java.util.concurrent.TimeUnit;
@:native('haxe.java.vm.Semaphore')
import python.lib.threading.Semaphore as NativeSemaphore;
final semaphore:NativeSemaphore;
package python.lib.threading;
@:pythonImport("threading", "Semaphore")
extern class Semaphore {
function new(value:Int);
@@ -3,6 +3,7 @@ package sys.thread;
#if (!target.threaded)
#error "This class is not available on this target"
#end
@:coreApi extern class Semaphore {
/**
Creates a new semaphore with an initial value.