[fpc-devel]Custom thread Data?

Florian Klaempfl Florian.Klaempfl at gmx.de
Thu Nov 14 12:13:55 CET 2002

At 10:18 14.11.2002, you wrote:
>At 04:25 14-11-2002, you wrote:
>>Now that mulit-threading is available in 1.1, will it be possible to add
>>something like windows tlsSetValue etc for custom thread data? I think
>>it should be possible to do directly via pthread_setspecific etc, but it
>>would be nice if it was part of rtl or fcl for cross win/*nix support,
>>something like can be done in Delphi with TlsGetValue(
>>hAlternateSession),and so forth.
>You can use threadvar to declare a variable to be thread specific.

I think he meant accessing the thread specific data for a particular thread.

More information about the fpc-devel mailing list