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