TLS_LOCALE_SLOT
tls_set(TLS_LOCALE_SLOT, threadLocale);
ThreadLocale* threadLocale = (ThreadLocale*)tls_get(TLS_LOCALE_SLOT);