[fpc-pascal] is resourcestring translation thread safe ?

Sven Barth pascaldragon at googlemail.com
Thu Feb 21 19:06:09 CET 2013


On 21.02.2013 17:55, ik wrote:
> Hello,
>
> Let's say I have a multi-threaded cgi (such as brook framework), and I
> use resourcestring to translate strings.
> Does the translation of resourcestring will be based on a thread -
> that is a copy for each thread, or will it be globally changed ?

It's globally. There is one resourcestring table for each unit and this 
will be changed through calls to SetResourceStrings ( 
http://community.freepascal.org/docs-html/rtl/objpas/setresourcestrings.html 
).

Regards,
Sven




More information about the fpc-pascal mailing list