Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
Dali::Internal::ThreadLocalStorage Class Reference

Class to store a pointer to core in thread local storage. More...

#include <thread-local-storage.h>

Collaboration diagram for Dali::Internal::ThreadLocalStorage:
Collaboration graph
[legend]

Public Member Functions

 ThreadLocalStorage (Core *core)
 Constructor Creates the TLS and adds a pointer to core. More...
 
 ~ThreadLocalStorage ()
 Destructor. More...
 
void Remove ()
 Remove core pointer. More...
 
Dali::Integration::PlatformAbstractionGetPlatformAbstraction ()
 get platform abstraction More...
 
SceneGraph::UpdateManagerGetUpdateManager ()
 Retrieve the update manager. More...
 
NotificationManagerGetNotificationManager ()
 Returns the Notification Manager. More...
 
ResourceManagerGetResourceManager ()
 Returns the Resource Manager. More...
 
ResourceClientGetResourceClient ()
 Returns the Resource Client. More...
 
ImageFactoryGetImageFactory ()
 Returns the Image Factory. More...
 
ShaderFactoryGetShaderFactory ()
 Returns the Shader Factory. More...
 
StagePtr GetCurrentStage ()
 Returns the current stage. More...
 
GestureEventProcessorGetGestureEventProcessor ()
 Returns the gesture event processor. More...
 
RelayoutControllerGetRelayoutController ()
 Return the relayout controller Return a reference to the relayout controller. More...
 

Static Public Member Functions

static ThreadLocalStorageGet ()
 Get the TLS. More...
 
static bool Created ()
 Checks if the TLS has been created. More...
 
static ThreadLocalStorageGetInternal ()
 Get a pointer to the TLS or NULL if not initialized. More...
 

Private Attributes

CoremCore
 reference to core More...
 

Detailed Description

Class to store a pointer to core in thread local storage.

Definition at line 55 of file thread-local-storage.h.

Constructor & Destructor Documentation

Dali::Internal::ThreadLocalStorage::ThreadLocalStorage ( Core core)

Constructor Creates the TLS and adds a pointer to core.

Parameters
[in]corereference to core

Definition at line 40 of file thread-local-storage.cpp.

References DALI_ASSERT_ALWAYS, and Dali::Internal::anonymous_namespace{thread-local-storage.cpp}::threadLocal.

Dali::Internal::ThreadLocalStorage::~ThreadLocalStorage ( )

Destructor.

Definition at line 48 of file thread-local-storage.cpp.

Member Function Documentation

bool Dali::Internal::ThreadLocalStorage::Created ( )
static

Checks if the TLS has been created.

Returns
if the TLS has been created

Definition at line 64 of file thread-local-storage.cpp.

References Dali::Internal::anonymous_namespace{thread-local-storage.cpp}::threadLocal.

Referenced by Dali::Internal::EventThreadServices::IsCoreRunning(), and Dali::Internal::Stage::IsInstalled().

Here is the caller graph for this function:

ThreadLocalStorage & Dali::Internal::ThreadLocalStorage::Get ( )
static

Get the TLS.

Returns
reference to the TLS

Definition at line 57 of file thread-local-storage.cpp.

References DALI_ASSERT_ALWAYS, and Dali::Internal::anonymous_namespace{thread-local-storage.cpp}::threadLocal.

Referenced by anonymous_namespace{utc-Dali-Internal-ResourceClient.cpp}::CheckLoadBitmap(), Dali::Internal::FrameBufferImage::Connect(), Dali::Internal::NativeImage::CreateGlTexture(), Dali::Internal::RelayoutController::Get(), Dali::ResourceImage::GetImageSize(), Dali::Internal::ImageFactory::GetImageSize(), Dali::Internal::Shader::Initialize(), Dali::Internal::ShaderFactory::Load(), Dali::Internal::Atlas::LoadBitmap(), Dali::Internal::NativeImage::New(), Dali::Internal::PropertyNotification::New(), Dali::Internal::EncodedBufferImage::New(), Dali::Internal::NinePatchImage::NinePatchImage(), Dali::Internal::ImageFactory::Reload(), Dali::Internal::ShaderFactory::SaveBinary(), Dali::Internal::PanGestureDetector::SetPanGestureProperties(), Dali::Internal::BufferImage::SetupBuffer(), UtcDaliImageFactoryCompatibleResource01(), UtcDaliImageFactoryCompatibleResource02(), UtcDaliImageFactoryCompatibleResource03(), UtcDaliImageFactoryInCompatibleResource(), UtcDaliImageFactoryReload01(), UtcDaliImageFactoryReload02(), UtcDaliImageFactoryReload03(), UtcDaliImageFactoryReload04(), UtcDaliImageFactoryReload05(), UtcDaliImageFactoryReload06(), UtcDaliImageFactoryUseCachedRequest03(), UtcDaliImageFactoryUseCachedRequest04(), UtcDaliInternalAddBitmapImage01(), UtcDaliInternalAddBitmapImage02(), UtcDaliInternalAddBitmapImage03(), UtcDaliInternalAddFrameBufferImage(), UtcDaliInternalAddNativeImage(), UtcDaliInternalAllocateTexture01(), UtcDaliInternalRequestReloadBitmapRequests01(), UtcDaliInternalRequestReloadBitmapRequests02(), UtcDaliInternalRequestReloadBitmapRequests03(), UtcDaliInternalRequestResourceBitmapRequests01(), UtcDaliInternalRequestResourceBitmapRequests02(), UtcDaliInternalRequestResourceBitmapRequests03(), UtcDaliInternalRequestResourceTicket01(), and UtcDaliInternalRequestResourceTicket02().

Here is the caller graph for this function:

StagePtr Dali::Internal::ThreadLocalStorage::GetCurrentStage ( )

Returns the current stage.

Returns
A pointer to the current stage.

Definition at line 110 of file thread-local-storage.cpp.

References mCore.

Referenced by Dali::Internal::Stage::GetCurrent().

Here is the caller graph for this function:

GestureEventProcessor & Dali::Internal::ThreadLocalStorage::GetGestureEventProcessor ( )

Returns the gesture event processor.

Returns
A reference to the gesture event processor.

Definition at line 115 of file thread-local-storage.cpp.

References mCore.

Referenced by Dali::Internal::PanGestureDetector::SetPanGestureProperties().

Here is the caller graph for this function:

ImageFactory & Dali::Internal::ThreadLocalStorage::GetImageFactory ( )
ThreadLocalStorage * Dali::Internal::ThreadLocalStorage::GetInternal ( )
static

Get a pointer to the TLS or NULL if not initialized.

Returns
pointer to the TLS

Definition at line 70 of file thread-local-storage.cpp.

References Dali::Internal::anonymous_namespace{thread-local-storage.cpp}::threadLocal.

Referenced by Dali::Internal::Stage::GetCurrent().

Here is the caller graph for this function:

NotificationManager & Dali::Internal::ThreadLocalStorage::GetNotificationManager ( )

Returns the Notification Manager.

Returns
reference to the Notification Manager

Definition at line 85 of file thread-local-storage.cpp.

References mCore.

Dali::Integration::PlatformAbstraction & Dali::Internal::ThreadLocalStorage::GetPlatformAbstraction ( )
RelayoutController & Dali::Internal::ThreadLocalStorage::GetRelayoutController ( )

Return the relayout controller Return a reference to the relayout controller.

Definition at line 120 of file thread-local-storage.cpp.

References mCore.

Referenced by Dali::Internal::RelayoutController::Get().

Here is the caller graph for this function:

ResourceClient & Dali::Internal::ThreadLocalStorage::GetResourceClient ( )
ResourceManager & Dali::Internal::ThreadLocalStorage::GetResourceManager ( )
ShaderFactory & Dali::Internal::ThreadLocalStorage::GetShaderFactory ( )

Returns the Shader Factory.

Returns
reference to the Shader Factory

Definition at line 105 of file thread-local-storage.cpp.

References mCore.

Referenced by Dali::Internal::Shader::Initialize().

Here is the caller graph for this function:

SceneGraph::UpdateManager & Dali::Internal::ThreadLocalStorage::GetUpdateManager ( )

Retrieve the update manager.

Returns
reference to update manager

Definition at line 80 of file thread-local-storage.cpp.

References mCore.

Referenced by Dali::Internal::PropertyNotification::New().

Here is the caller graph for this function:

void Dali::Internal::ThreadLocalStorage::Remove ( )

Remove core pointer.

Prevents the core pointer being automatically deleted when the thread exits.

Definition at line 52 of file thread-local-storage.cpp.

References Dali::Internal::anonymous_namespace{thread-local-storage.cpp}::threadLocal.

Member Data Documentation

Core* Dali::Internal::ThreadLocalStorage::mCore
private

The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali