Explorar o código

* InitThread variant without parameters as user threads normally cannot know the max. stack size

git-svn-id: trunk@43068 -
florian %!s(int64=5) %!d(string=hai) anos
pai
achega
5ed2475c85
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      rtl/inc/thread.inc

+ 7 - 0
rtl/inc/thread.inc

@@ -96,6 +96,13 @@ Var
           CurrentTM.ReleaseThreadVars;
       end;
 
+
+    procedure InitThread;
+      begin
+        { we should find a reasonable value here }
+        InitThread($1000000);
+      end;
+
 {*****************************************************************************
                             Overloaded functions
 *****************************************************************************}