Re: [fpc-pascal] reading a TFPGMap from several threads

2022-09-07 Thread Luca Olivetti via fpc-pascal
El 7/9/22 a les 14:12, Sven Barth via fpc-pascal ha escrit: Luca Olivetti via fpc-pascal > 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 a

Re: [fpc-pascal] reading a TFPGMap from several threads

2022-09-07 Thread Sven Barth via fpc-pascal
Luca Olivetti via fpc-pascal 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 s