[fpc-devel] threadvar implementation

"Vinzent Höfler" JeLlyFish.software at gmx.net
Fri Aug 6 18:32:26 CEST 2010


Michael Schnell <mschnell at lumino.de>:

> In fact I still don't know how the compiler should 
> construct a pointer to a threadvar in Linux.

pthread_getspecific()

It returns a pointer to it (well, to the block of associated memory, so maybe adding an offset would be required if more than just one variable is stored there).


Vinzent.

-- 
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 ¿/mtl.!*
http://portal.gmx.net/de/go/dsl



More information about the fpc-devel mailing list