namespace
{
+#if defined(EMSCRIPTEN)
+ThreadLocalStorage* threadLocal = NULL;
+#else
__thread ThreadLocalStorage* threadLocal = NULL;
+#endif
}
ThreadLocalStorage::ThreadLocalStorage(Core* core)
-: mCore(core)
+: mCore( core )
{
DALI_ASSERT_ALWAYS( threadLocal == NULL && "Cannot create more than one ThreadLocalStorage object" );
- // reset is used to store a new value associated with this thread
threadLocal = this;
}