Quote:
Originally Posted by mcp
Data races yield undefined behavior, so the worst thing that could happen is that this code produces hard to find bugs/crashes. There is no such thing as "virtually thread safe"
|
good luck trying to get it to crash
anyways, this should fix it:
Code:
static thread_local lib_map libMap;
Quote:
Originally Posted by dosprog
There is such a thing as the portability of the source code.
|
really? feel free to do so. i ve already posted a highly portable version