[fpc-pascal] reading a TFPGMap from several threads

Sven Barth pascaldragon at googlemail.com
Wed Sep 7 14:12:14 CEST 2022

Luca Olivetti via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Mi., 7. Sep. 2022, 13:01:

> Hello,
> I have a couple of TFPGMaps that I populate once and never change.
> Is it safe to read them (i.e. use Find and Data[]) from different threads?
> I'd avoid using a critical section if not absolutely necessary.

I'd say that this should be safe indeed.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220907/b6d1193a/attachment.htm>

More information about the fpc-pascal mailing list