[fpc-pascal] writeln: FPC runtime race conditions in external C threads

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Jul 12 22:39:30 CEST 2010


Michael Van Canneyt wrote on Mon, 12 Jul 2010:

> On Mon, 12 Jul 2010, Alexander Grau wrote:
>
>> r15557 | jonas | 2010-07-12 18:16:50 +0200 (Mo, 12 Jul 2010) | 3 lines
>>
>> + added support for intialising/finalising threads not started via the FPC
>>  runtime
>
> I don't see how this helps, because CRelocateThreadvar is only called from
> within the FPC thread creation routine, or am I wrong in that ?

CRelocateThreadvar is called every time a threadvar is accessed. All  
the FPC thread creation routine does related to CRelocateThreadvar is  
to install it as "the" threadvar relocation routine the very first  
time you create a thread using the FPC RTL (hence the addendum I just  
posted).


Jonas

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the fpc-pascal mailing list