ncannasse hace 1 día
padre
commit
7da5f2f669
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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.impl = ThreadImpl.create(function() {
 			t.impl = ThreadImpl.current();
+			currentTLS.value = t;
 			var exception = null;
 			try {
 				job();