/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// INTERNAL INCLUDES
#include <dali/internal/common/core-impl.h>
#include <dali/public-api/common/dali-common.h>
+#include <dali/internal/event/common/event-thread-services.h>
namespace Dali
{
namespace
{
-thread_local ThreadLocalStorage* threadLocal = NULL;
+thread_local ThreadLocalStorage* threadLocal = nullptr;
}
ThreadLocalStorage::ThreadLocalStorage(Core* core)
: mCore( core )
{
- DALI_ASSERT_ALWAYS( threadLocal == NULL && "Cannot create more than one ThreadLocalStorage object" );
+ DALI_ASSERT_ALWAYS( threadLocal == nullptr && "Cannot create more than one ThreadLocalStorage object" );
threadLocal = this;
}
void ThreadLocalStorage::Remove()
{
- threadLocal = NULL;
+ threadLocal = nullptr;
}
ThreadLocalStorage& ThreadLocalStorage::Get()
bool ThreadLocalStorage::Created()
{
// see if the TLS has been set yet
- return (threadLocal != NULL);
+ return (threadLocal != nullptr);
}
ThreadLocalStorage* ThreadLocalStorage::GetInternal()
return mCore->GetRelayoutController();
}
+ObjectRegistry& ThreadLocalStorage::GetObjectRegistry()
+{
+ return mCore->GetObjectRegistry();
+}
+
+EventThreadServices& ThreadLocalStorage::GetEventThreadServices()
+{
+ return mCore->GetEventThreadServices();
+}
+
+PropertyNotificationManager& ThreadLocalStorage::GetPropertyNotificationManager()
+{
+ return mCore->GetPropertyNotificationManager();
+}
+
+AnimationPlaylist& ThreadLocalStorage::GetAnimationPlaylist()
+{
+ return mCore->GetAnimationPlaylist();
+}
+
+void ThreadLocalStorage::AddScene( Scene* scene )
+{
+ mCore->AddScene( scene );
+}
+
+void ThreadLocalStorage::RemoveScene( Scene* scene )
+{
+ mCore->RemoveScene( scene );
+}
+
} // namespace Internal
} // namespace Dali