TUUID::AsString() not ThreadSafe

Dear Root-Devs,

I ran into a problem using TUUID in a multithreaded use case. As TUUID has no copy constructor, I used TUUID(const char *uuid) and corresponding TUUID::AsString() to initialize TUUID members in some of my classes. However, TUUID::AsString() appears to be not thread-safe as it uses a static variable into which it sprintfs.

So my question: Would it be ok to use the implicit copy constructor with TUUID?

Cheers,
Jochen

Well, I guess I can answer my own question. :slight_smile:

As far as I can see in the src, the implicit copy constructors should be ok and thread safe.

Cheers,
Jochen