Use _beginthread() and _endthread() in favor of CreateThread() and
ExitThread(). As discussed in c.l.p, this takes care of initialization and finalization of thread-local storage allocated by the C runtime system. Not sure whether non-MS compilers grok this though (but who cares :-).
Showing
Please
register
or
sign in
to comment