ncannasse 1 dzień temu
rodzic
commit
7da5f2f669
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      std/sys/thread/Thread.hx

+ 1 - 0
std/sys/thread/Thread.hx

@@ -146,6 +146,7 @@ class Thread {
 			t.onAbort = onAbort;
 			t.onAbort = onAbort;
 		t.impl = ThreadImpl.create(function() {
 		t.impl = ThreadImpl.create(function() {
 			t.impl = ThreadImpl.current();
 			t.impl = ThreadImpl.current();
+			currentTLS.value = t;
 			var exception = null;
 			var exception = null;
 			try {
 			try {
 				job();
 				job();