Browse Source

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

git-svn-id: trunk@43068 -
florian 5 years ago
parent
commit
5ed2475c85
1 changed files with 7 additions and 0 deletions
  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
 *****************************************************************************}