[fpc-devel] OO rewrite - technical questions

Michael Schnell mschnell at lumino.de
Mon Jul 26 10:04:46 CEST 2010

  On 07/24/2010 04:55 AM, Hans-Peter Diettrich wrote:
> I see no difference here. IMO the segment register is used implicitly 
> in thread API calls, with no further use by application code. Every 
> thread has one "slot" reserved in the OS-maintained data structure, 
> where it can store one private value. In the "Using Thread Local 
> Storage" entry in the MSDN library this value is the handle of a 
> memory block, created with LocalAlloc.
Delphi (Win32) reads the word at location <FS> +4 and addresses the 
threadvars relative to same. I intend to take a look at FPC Win32 and 
Linux (32 Bit), gnuc and ;Microsoft C if I find the time to do so,


More information about the fpc-devel mailing list