On sexta-feira, 26 de outubro de 2012 21.06.35, Frank Reininghaus wrote: > Yes, I thought the same, but then I wasn't entirely sure if all these > functions really are thread-safe. Some of them have const static variables, > which might be initialised the first time the function is called AFAIK. I > don't know if that's guaranteed to work if the functions can be called from > multiple threads. But you can probably answer that question
Caching some global information which could be recreated on every call is
stateless and thread-safe.
If the static variable cannot be recreated on every call, it's stateful. That
contradicts the documentation.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
