Browse Source

* removed Dos[Alloc/Free]ThreadLocalMemory which is not available before OS/2 Warp - planned to be moved to DosCall2 later

git-svn-id: trunk@28953 -
Tomas Hajny 10 years ago
parent
commit
a46b076cd2
1 changed files with 0 additions and 17 deletions
  1. 0 17
      rtl/os2/doscalls.pas

+ 0 - 17
rtl/os2/doscalls.pas

@@ -3207,16 +3207,6 @@ procedure DosFlatToSel; cdecl;
 {typecast result to TFarPtr}
 {typecast result to TFarPtr}
 function FlatToSel (APtr: pointer): cardinal;
 function FlatToSel (APtr: pointer): cardinal;
 
 
-{Allocate Count dwords in a memory block unique in each thread. A maximum
- of 8 dwords can be allocated at a time, the total size of the thread local
- memory area is 128 bytes; FPC 1.1+ uses one dword from this for internal
- multi-threading support, leaving 124 bytes to programmers.}
-function DosAllocThreadLocalMemory (Count: cardinal; var P: pointer): cardinal;
-                                                                         cdecl;
-
-{Deallocate a previously allocated space in the thread local memory area.}
-function DosFreeThreadLocalMemory (P: pointer): cardinal; cdecl;
-
 const
 const
 { Values for DosQueryRASInfo Index parameter }
 { Values for DosQueryRASInfo Index parameter }
   sis_MMIOAddr = 0;
   sis_MMIOAddr = 0;
@@ -5743,13 +5733,6 @@ function FlatToSel (APtr: pointer): cardinal; assembler;
   pop ebx
   pop ebx
  end;
  end;
 
 
-function DosAllocThreadLocalMemory (Count: cardinal; var P: pointer): cardinal;
-                                                                         cdecl;
-external 'DOSCALLS' index 454;
-
-function DosFreeThreadLocalMemory (P: pointer): cardinal; cdecl;
-external 'DOSCALLS' index 455;
-
 function DosQueryRASInfo (Index: cardinal; var PBuffer: pointer): cardinal;
 function DosQueryRASInfo (Index: cardinal; var PBuffer: pointer): cardinal;
                                           cdecl; external 'DOSCALLS' index 112;
                                           cdecl; external 'DOSCALLS' index 112;