On 01/30/2015 10:56 PM, Fabrício Srdic wrote:
Hello,

The DB access framework of the fpc is not thread safe.

IMHO you should never use the therm thread save in such a generalization. You need do be a lot more specific.

I never took a look at "The DB access framework of the fpc", so I can't comment on this but e.g. TList obviously is not thread save (that is why we have TThreadList), but anyway it's no problem to instantiate a TList object and use that exclusively from a single Thread, and then instantiate another TList object and use that exclusively from a different single Thread. Hence you could say "TList is thread save but it's instantiations are not". Maybe it's similar with "the DB framework".

AFAIK, Indy is thread save (of course provided the user adheres to a lot of necessary precautions that might not be explicitly documented).

I do know that a friend of mine used Delphi and Indy with a heavily multithreaded project.

-Michael
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to