Constructions of thread-local classes

Dear Developers and Users,

as far as I know, G4VSensitiveDetector (or more precisely the derived class) is a thread local class, so there is a copy on all threads.

Naively I thought, that the the constructor will run for each copy/thread, but I had to realise, that it’s only called once on the master thread(?) (threadID=-1). (While the destructor seems to be called on all threads.)

So i wonder how are the thread local classes constructed on the worker threads.