Sfoglia il codice sorgente

removed `sys.thread.EventLoop.handle`

Aleksandr Kuzmenko 4 anni fa
parent
commit
46bc969a69
2 ha cambiato i file con 2 aggiunte e 7 eliminazioni
  1. 2 3
      std/eval/_std/sys/thread/EventLoop.hx
  2. 0 4
      std/sys/thread/EventLoop.hx

+ 2 - 3
std/eval/_std/sys/thread/EventLoop.hx

@@ -12,8 +12,6 @@ enum NextEventTime {
 	At(time:Float);
 }
 
-abstract EventLoopHandle(Loop) from Loop to Loop {}
-
 abstract EventHandler(RegularEvent) from RegularEvent to RegularEvent {}
 
 private class RegularEvent {
@@ -31,7 +29,8 @@ private class RegularEvent {
 
 @:coreApi
 class EventLoop {
-	public final handle:EventLoopHandle;
+	@:allow(eval.luv.Loop)
+	final handle:Loop;
 
 	final mutex = new Mutex();
 	final oneTimeEvents = new Array<Null<()->Void>>();

+ 0 - 4
std/sys/thread/EventLoop.hx

@@ -17,15 +17,11 @@ enum NextEventTime {
 	At(time:Float);
 }
 
-abstract EventLoopHandle(Int) {}
-
 /**
 	An event loop implementation used for `sys.thread.Thread`
 **/
 @:coreApi
 class EventLoop {
-	public final handle:EventLoopHandle = cast 0;
-
 	final mutex = new Mutex();
 	final oneTimeEvents = new Array<Null<()->Void>>();
 	var oneTimeEventsIdx = 0;