[fpc-pascal] reading a TFPGMap from several threads

Luca Olivetti luca at ventoso.org
Wed Sep 7 15:39:45 CEST 2022


El 7/9/22 a les 14:12, Sven Barth via fpc-pascal ha escrit:
> Luca Olivetti via fpc-pascal <fpc-pascal at lists.freepascal.org 
> <mailto: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.

Ok, thank you.

Bye
-- 
Luca


More information about the fpc-pascal mailing list