Is the code inside of generated intf and invk classes thread safe?

delphi

(estebanp) #1

Delphi, Tokyo, Latest release - 1

Lets say we have an instance of a service

fServiceOne := coCreateServiceOne(globalChannel, globalMessage);

and fServiceOne is declared as a singleton. Is fServiceOne thread safe? can methods inside fServiceOne be called from multiple threads without trouble? even on massive amount of calls scenario?

Also, if globalChannel is SuperTcp and globalMessage is Binary, can we safely assume they are thread safe?


(marc hoffman) #2

It should be, yes.