浏览代码

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

git-svn-id: trunk@43068 -
florian 5 年之前
父节点
当前提交
5ed2475c85
共有 1 个文件被更改,包括 7 次插入0 次删除
  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
 *****************************************************************************}