Multiple threads in my application will be calling MultiByteToWideChar for converting UTF-8 to wchar_t strings.
I’ve been unable to find any documentation which states whether this function is re-entrant or thread safe. I want to avoid synchronizing calls to this method if not needed. Does anyone know the answer or how to find it?
Multiple threads in my application will be calling MultiByteToWideChar for converting UTF-8 to wchar_t
Share
The function is thread safe … but I don’t have a definitive link to prove it!
There is some discussion on this thread … but in general the rule would be that if an API call does not have some specific context (eg. a handle) it is called with or other explicit threading rules (ie. the whole GDI layer) then it should be thread safe.
It would certainly be good to see this more explicitly called out in the documentation though.