pascal - Is TFPGMap thread safe? -


i have question tfpgmap fgl unit in pascal. thread safe? or have use critical section?

var map:tfpgmap; begin map:=tfpgmap.create(); (...) cs.enter; map.find('key'); cs.leave; 

thank answers! :)

is tfpgmap thread safe?

no not.

such classes never threadsafe because we're made way consumers pay price don't want pay price. need implement own synchronisation.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

Slow performance first queries on SQL Azure -

Java Entity Manager - JSON reader was expecting a value but found 'db' -