瀏覽代碼

+ Add _FPC_TlsSize public symbol for use by heaptrc unit

git-svn-id: trunk@20180 -
pierre 13 年之前
父節點
當前提交
f80bc70707
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      rtl/win/systhrd.inc

+ 2 - 0
rtl/win/systhrd.inc

@@ -96,6 +96,7 @@ var
 
     const
       TLSKey : DWord = $ffffffff; public name '_FPC_TlsKey';
+      TLSSize : DWord = 0; public name '_FPC_TlsSize';
 
     var
       MainThreadIdWin32 : DWORD;
@@ -131,6 +132,7 @@ var
             if dataindex=nil then
               RunError(226);
             TlsSetValue(tlskey,dataindex);
+            TlsSize:=threadvarblocksize;
           end;
         SetLastError(errorsave);
       end;