@@ -13427,25 +13427,25 @@
1342713427 <meta><m n=":directlyUsed"/></meta>
1342813428 </class>
1342913429 <class path="sys.thread.ThreadCallbackManager" params="" file="/home/runner/work/haxe/haxe/std/sys/thread/ThreadCallback.hx" module="sys.thread.ThreadCallback">
13430- <collectCallbacks params="F" set="method" line="140 " static="1"><f a="local:global">
13430+ <collectCallbacks params="F" set="method" line="146 " static="1"><f a="local:global">
1343113431 <x path="Null"><c path="sys.thread.ThreadCallbackStack"><c path="collectCallbacks.F"/></c></x>
1343213432 <x path="Null"><c path="sys.thread.ThreadCallbackStack"><c path="collectCallbacks.F"/></c></x>
1343313433 <c path="Array"><c path="sys.thread.ThreadCallback"><c path="collectCallbacks.F"/></c></c>
1343413434</f></collectCallbacks>
13435- <iterateCallbacks params="F" set="method" line="153 " static="1"><f a="callbacks:f">
13435+ <iterateCallbacks params="F" set="method" line="159 " static="1"><f a="callbacks:f">
1343613436 <c path="Array"><c path="sys.thread.ThreadCallback"><c path="iterateCallbacks.F"/></c></c>
1343713437 <f a="">
1343813438 <c path="sys.thread.ThreadCallback"><c path="iterateCallbacks.F"/></c>
1343913439 <x path="Void"/>
1344013440 </f>
1344113441 <x path="Void"/>
1344213442</f></iterateCallbacks>
13443- <invokeCallbacks public="1" set="method" line="171 " static="1"><f a="local:global">
13443+ <invokeCallbacks public="1" set="method" line="177 " static="1"><f a="local:global">
1344413444 <x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a=""><x path="Void"/></f></c></x>
1344513445 <x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a=""><x path="Void"/></f></c></x>
1344613446 <x path="Void"/>
1344713447</f></invokeCallbacks>
13448- <invokeCallbacksArg public="1" params="Arg" set="method" line="176 " static="1"><f a="local:global:e">
13448+ <invokeCallbacksArg public="1" params="Arg" set="method" line="182 " static="1"><f a="local:global:e">
1344913449 <x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a="">
1345013450 <c path="invokeCallbacksArg.Arg"/>
1345113451 <x path="Void"/>
@@ -13457,33 +13457,38 @@
1345713457 <c path="invokeCallbacksArg.Arg"/>
1345813458 <x path="Void"/>
1345913459</f></invokeCallbacksArg>
13460+ <onCreateCallback public="1"><x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a=""><x path="Void"/></f></c></x></onCreateCallback>
1346013461 <onStartCallback public="1"><x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a=""><x path="Void"/></f></c></x></onStartCallback>
1346113462 <onJobDoneCallback public="1"><x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a=""><x path="Void"/></f></c></x></onJobDoneCallback>
1346213463 <onExitCallback public="1"><x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a=""><x path="Void"/></f></c></x></onExitCallback>
1346313464 <onAbortCallback public="1"><x path="Null"><c path="sys.thread.ThreadCallbackStack"><f a="">
1346413465 <c path="haxe.Exception"/>
1346513466 <x path="Void"/>
1346613467</f></c></x></onAbortCallback>
13467- <onStart public="1" set="method" line="120"><f a="f">
13468+ <onCreate public="1" set="method" line="121"><f a="f">
13469+ <f a=""><x path="Void"/></f>
13470+ <c path="sys.thread.IThreadCallbackHandle"/>
13471+ </f></onCreate>
13472+ <onStart public="1" set="method" line="126"><f a="f">
1346813473 <f a=""><x path="Void"/></f>
1346913474 <c path="sys.thread.IThreadCallbackHandle"/>
1347013475</f></onStart>
13471- <onJobDone public="1" set="method" line="125 "><f a="f">
13476+ <onJobDone public="1" set="method" line="131 "><f a="f">
1347213477 <f a=""><x path="Void"/></f>
1347313478 <c path="sys.thread.IThreadCallbackHandle"/>
1347413479</f></onJobDone>
13475- <onExit public="1" set="method" line="130 "><f a="f">
13480+ <onExit public="1" set="method" line="136 "><f a="f">
1347613481 <f a=""><x path="Void"/></f>
1347713482 <c path="sys.thread.IThreadCallbackHandle"/>
1347813483</f></onExit>
13479- <onAbort public="1" set="method" line="135 "><f a="f">
13484+ <onAbort public="1" set="method" line="141 "><f a="f">
1348013485 <f a="">
1348113486 <c path="haxe.Exception"/>
1348213487 <x path="Void"/>
1348313488 </f>
1348413489 <c path="sys.thread.IThreadCallbackHandle"/>
1348513490</f></onAbort>
13486- <new public="1" set="method" line="118 "><f a=""><x path="Void"/></f></new>
13491+ <new public="1" set="method" line="119 "><f a=""><x path="Void"/></f></new>
1348713492 <meta><m n=":directlyUsed"/></meta>
1348813493 </class>
1348913494 <class path="sys.thread.Thread" params="" file="/home/runner/work/haxe/haxe/std/sys/thread/Thread.hx">
1350713512 <c path="sys.thread.ThreadCallbackManager"/>
1350813513 <meta><m n=":keep"/></meta>
1350913514 </globalCallbacks>
13510- <readMessage public="1" set="method" line="125 " static="1">
13515+ <readMessage public="1" set="method" line="131 " static="1">
1351113516 <f a="blocking">
1351213517 <x path="Bool"/>
1351313518 <x path="Null"><d/></x>
@@ -13518,27 +13523,27 @@
1351813523 <c path="sys.thread.Tls"><c path="sys.thread.Thread"/></c>
1351913524 <meta><m n=":keep"/></meta>
1352013525 </currentTLS>
13521- <current public="1" set="method" line="142 " static="1">
13526+ <current public="1" set="method" line="148 " static="1">
1352213527 <f a=""><c path="sys.thread.Thread"/></f>
1352313528 <meta><m n=":keep"/></meta>
1352413529 <haxe_doc>Returns the current thread.
1352513530 If you are calling this function from a native thread that is not the main thread and was not created by `Thread.create`, this will return you
1352613531 a native thread with a `null` EvenLoop and `isNative` set to true. You need to call `disposeNative()` on such value on thread termination.</haxe_doc>
1352713532 </current>
13528- <main public="1" get="inline" set="null" line="159 " static="1">
13533+ <main public="1" get="inline" set="null" line="165 " static="1">
1352913534 <f a=""><c path="sys.thread.Thread"/></f>
1353013535 <meta><m n=":keep"/></meta>
1353113536 <haxe_doc>Returns the main thread</haxe_doc>
1353213537 </main>
13533- <installCallbacks set="method" line="163 " static="1">
13538+ <installCallbacks set="method" line="169 " static="1">
1353413539 <f a="host:callbacks">
1353513540 <c path="sys.thread.ThreadCallbackManager"/>
1353613541 <t path="sys.thread.ThreadCallbacks"/>
1353713542 <c path="sys.thread.IThreadCallbackHandle"/>
1353813543 </f>
1353913544 <meta><m n=":keep"/></meta>
1354013545 </installCallbacks>
13541- <create public="1" set="method" line="187 " static="1">
13546+ <create public="1" set="method" line="196 " static="1">
1354213547 <f a="?name:job:?callbacks">
1354313548 <c path="String"/>
1354413549 <f a=""><x path="Void"/></f>
@@ -13549,14 +13554,14 @@
1354913554 <haxe_doc>Creates a new thread that will execute the `job` function, then exit after all events are processed.
1355013555 You can specify a custom exception handler `onAbort` or else `Thread.onAbort` will be called.</haxe_doc>
1355113556 </create>
13552- <getAll public="1" set="method" line="248 " static="1">
13557+ <getAll public="1" set="method" line="258 " static="1">
1355313558 <f a=""><c path="Array"><c path="sys.thread.Thread"/></c></f>
1355413559 <meta><m n=":keep"/></meta>
1355513560 <haxe_doc>Returns a list of all currently running threads.
1355613561 This excludes native threads which were created without Thread.create and have not been
1355713562 registered with a call to Thread.current().</haxe_doc>
1355813563 </getAll>
13559- <addCallbacks public="1" set="method" line="262 " static="1">
13564+ <addCallbacks public="1" set="method" line="272 " static="1">
1356013565 <f a="callbacks">
1356113566 <t path="sys.thread.ThreadCallbacks"/>
1356213567 <c path="sys.thread.IThreadCallbackHandle"/>
1356813573 Unlike callbacks passed to `Thread.create`, closing the returned handle prevents the
1356913574 callbacks from being called even for threads that are already running.</haxe_doc>
1357013575 </addCallbacks>
13571- <addCurrentCallbacks public="1" set="method" line="270 " static="1">
13576+ <addCurrentCallbacks public="1" set="method" line="280 " static="1">
1357213577 <f a="callbacks">
1357313578 <t path="sys.thread.CurrentThreadCallbacks"/>
1357413579 <c path="sys.thread.IThreadCallbackHandle"/>
1358313588 <m n=":deprecated"><e>"Use haxe.EventLoop.getThreadLoop(thread) instead"</e></m>
1358413589 </meta>
1358513590 </events>
13586- <get_events get="inline" set="null" line="66 ">
13591+ <get_events get="inline" set="null" line="72 ">
1358713592 <f a=""><x path="Null"><c path="haxe.EventLoop"/></x></f>
1358813593 <meta>
1358913594 <m n=":deprecated"><e>"Use haxe.EventLoop.getThreadLoop(thread) instead"</e></m>
@@ -13617,33 +13622,33 @@
1361713622 <haxe_doc>Tells if a thread is a native thread that is not managed by Haxe.
1361813623 See `Thread.current` for details.</haxe_doc>
1361913624 </isNative>
13620- <set_name set="method" line="93 ">
13625+ <set_name set="method" line="99 ">
1362113626 <f a="n">
1362213627 <x path="Null"><c path="String"/></x>
1362313628 <x path="Null"><c path="String"/></x>
1362413629 </f>
1362513630 <meta><m n=":keep"/></meta>
1362613631 </set_name>
13627- <toString public="1" set="method" line="99 ">
13632+ <toString public="1" set="method" line="105 ">
1362813633 <f a=""><c path="String"/></f>
1362913634 <meta><m n=":keep"/></meta>
1363013635 </toString>
13631- <sendMessage public="1" set="method" line="103 ">
13636+ <sendMessage public="1" set="method" line="109 ">
1363213637 <f a="msg">
1363313638 <d/>
1363413639 <x path="Void"/>
1363513640 </f>
1363613641 <meta><m n=":keep"/></meta>
1363713642 </sendMessage>
13638- <disposeNative public="1" set="method" line="112 ">
13643+ <disposeNative public="1" set="method" line="118 ">
1363913644 <f a=""><x path="Void"/></f>
1364013645 <meta><m n=":keep"/></meta>
1364113646 </disposeNative>
13642- <dispose set="method" line="118 ">
13647+ <dispose set="method" line="124 ">
1364313648 <f a=""><x path="Void"/></f>
1364413649 <meta><m n=":keep"/></meta>
1364513650 </dispose>
13646- <onAbort set="method" line="290 ">
13651+ <onAbort set="method" line="300 ">
1364713652 <f a="e">
1364813653 <c path="haxe.Exception"/>
1364913654 <x path="Void"/>
1365813663 It is generally good practice to call any previously existing callback
1365913664 from functions assigned to this.</haxe_doc>
1366013665 </onAbort>
13661- <new set="method" line="86 ">
13666+ <new set="method" line="92 ">
1366213667 <f a="impl">
1366313668 <x path="sys.thread.ThreadImpl"/>
1366413669 <x path="Void"/>
1368913694 <implements path="sys.thread.IThreadCallbackHandle"/>
1369013695 <handles final="1"><c path="Array"><c path="sys.thread.IThreadCallbackHandle"/></c></handles>
1369113696 <isClosed public="1" get="accessor" set="null"><x path="Bool"/></isClosed>
13692- <get_isClosed set="method" line="191 "><f a=""><x path="Bool"/></f></get_isClosed>
13693- <close public="1" set="method" line="197 "><f a=""><x path="Void"/></f></close>
13694- <new public="1" set="method" line="185 "><f a="handles">
13697+ <get_isClosed set="method" line="197 "><f a=""><x path="Bool"/></f></get_isClosed>
13698+ <close public="1" set="method" line="203 "><f a=""><x path="Void"/></f></close>
13699+ <new public="1" set="method" line="191 "><f a="handles">
1369513700 <c path="Array"><c path="sys.thread.IThreadCallbackHandle"/></c>
1369613701 <x path="Void"/>
1369713702</f></new>
4897348978 <x path="Null"><f a=""><x path="Void"/></f></x>
4897448979 <meta><m n=":optional"/></meta>
4897548980 </onExit>
48981+ <onCreate>
48982+ <x path="Null"><f a=""><x path="Void"/></f></x>
48983+ <meta><m n=":optional"/></meta>
48984+ </onCreate>
4897648985 <onAbort>
4897748986 <x path="Null"><f a="">
4897848987 <c path="haxe.Exception"/>
0 commit comments