Replace GCC specific __thread with C++ 11 keyword thread_local
[platform/core/uifw/dali-adaptor.git] / adaptors / common / singleton-service-impl.cpp
index d975d94..5ee6180 100644 (file)
@@ -48,10 +48,9 @@ namespace Internal
 namespace Adaptor
 {
 
-// @todo Start using pthread_key_create if we want to avoid leaking the SingletonService on shutdown
 namespace
 {
-__thread SingletonService * gSingletonService = 0;
+thread_local SingletonService * gSingletonService = 0;
 } // unnamed namespace
 
 Dali::SingletonService SingletonService::New()