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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

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