Change-Id: I0a3725b53f2cdb48ad0ba0b26e60ef75ef7c46c3
namespace
{
-__thread Adaptor* gThreadLocalAdaptor = NULL; // raw thread specific pointer to allow Adaptor::Get
+thread_local Adaptor* gThreadLocalAdaptor = NULL; // raw thread specific pointer to allow Adaptor::Get
} // unnamed namespace
Dali::Adaptor* Adaptor::New( Any nativeWindow, RenderSurface *surface, Dali::Configuration::ContextLoss configuration, EnvironmentOptions* environmentOptions )
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()