- // allocate TLS index for storing the pointer to the current thread
-// TODO:
-/*
- s_tlsThisThread = ::TlsAlloc();
- if ( s_tlsThisThread == 0xFFFFFFFF )
- {
- // in normal circumstances it will only happen if all other
- // TLS_MINIMUM_AVAILABLE (>= 64) indices are already taken - in other
- // words, this should never happen
- wxLogSysError(_("Thread module initialization failed: "
- "impossible to allocate index in thread "
- "local storage"));
-
- return FALSE;
- }
-*/
- // main thread doesn't have associated wxThread object, so store 0 in the
- // TLS instead
-
-// TODO:
-/*
- if ( !::TlsSetValue(s_tlsThisThread, (LPVOID)0) )
- {
- ::TlsFree(s_tlsThisThread);
- s_tlsThisThread = 0xFFFFFFFF;
-
- wxLogSysError(_("Thread module initialization failed: "
- "can not store value in thread local storage"));