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

The update-thread is responsible for calling Core::Update(), and for triggering the render-thread after each update. More...

#include <update-thread.h>

Collaboration diagram for Dali::Internal::Adaptor::UpdateThread:
Collaboration graph
[legend]

Public Member Functions

 UpdateThread (ThreadSynchronization &sync, AdaptorInternalServices &adaptorInterfaces, const EnvironmentOptions &environmentOptions)
 Create the update-thread; this will not do anything until Start() is called. More...
 
 ~UpdateThread ()
 Non-virtual destructor; UpdateThread is not suitable as a base class. More...
 
void Start ()
 Starts the update-thread. More...
 
void Stop ()
 Stops the update-thread. More...
 

Private Member Functions

bool Run ()
 This method is used by the update-thread for calling Core::Update(). More...
 

Static Private Member Functions

static void * InternalThreadEntryFunc (void *This)
 Helper for the thread calling the entry function. More...
 

Private Attributes

ThreadSynchronizationmThreadSynchronization
 Used to synchronize all the threads. More...
 
Dali::Integration::CoremCore
 Dali core reference. More...
 
FpsTracker mFpsTracker
 Object that tracks the FPS. More...
 
UpdateStatusLogger mUpdateStatusLogger
 Object that logs the update-status as required. More...
 
pthread_t * mThread
 The actual update-thread. More...
 
const EnvironmentOptionsmEnvironmentOptions
 environment options More...
 

Detailed Description

The update-thread is responsible for calling Core::Update(), and for triggering the render-thread after each update.

Definition at line 50 of file update-thread.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::UpdateThread::UpdateThread ( ThreadSynchronization sync,
AdaptorInternalServices adaptorInterfaces,
const EnvironmentOptions environmentOptions 
)

Create the update-thread; this will not do anything until Start() is called.

Parameters
[in]syncAn object used to synchronize update & render threads.
[in]adaptorInterfacesbase adaptor interface
[in]environmentOptionsenvironment options

Definition at line 46 of file update-thread.cpp.

Dali::Internal::Adaptor::UpdateThread::~UpdateThread ( )

Non-virtual destructor; UpdateThread is not suitable as a base class.

Definition at line 58 of file update-thread.cpp.

References Stop().

Here is the call graph for this function:

Member Function Documentation

static void* Dali::Internal::Adaptor::UpdateThread::InternalThreadEntryFunc ( void *  This)
inlinestaticprivate

Helper for the thread calling the entry function.

Parameters
[in]ThisA pointer to the current UpdateThread object

Definition at line 91 of file update-thread.h.

Referenced by Start().

Here is the caller graph for this function:

bool Dali::Internal::Adaptor::UpdateThread::Run ( )
private
void Dali::Internal::Adaptor::UpdateThread::Start ( )

Starts the update-thread.

Definition at line 63 of file update-thread.cpp.

References DALI_ASSERT_ALWAYS, DALI_LOG_INFO, InternalThreadEntryFunc(), and mThread.

Referenced by Dali::Internal::Adaptor::SeparateUpdateRenderController::Initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::UpdateThread::Stop ( )

Stops the update-thread.

Definition at line 75 of file update-thread.cpp.

References DALI_LOG_INFO, and mThread.

Referenced by Dali::Internal::Adaptor::SeparateUpdateRenderController::Stop(), and ~UpdateThread().

Here is the caller graph for this function:

Member Data Documentation

Dali::Integration::Core& Dali::Internal::Adaptor::UpdateThread::mCore
private

Dali core reference.

Definition at line 101 of file update-thread.h.

Referenced by Run().

const EnvironmentOptions& Dali::Internal::Adaptor::UpdateThread::mEnvironmentOptions
private

environment options

Definition at line 107 of file update-thread.h.

Referenced by Run().

FpsTracker Dali::Internal::Adaptor::UpdateThread::mFpsTracker
private

Object that tracks the FPS.

Definition at line 103 of file update-thread.h.

Referenced by Run().

pthread_t* Dali::Internal::Adaptor::UpdateThread::mThread
private

The actual update-thread.

Definition at line 106 of file update-thread.h.

Referenced by Start(), and Stop().

ThreadSynchronization& Dali::Internal::Adaptor::UpdateThread::mThreadSynchronization
private

Used to synchronize all the threads.

Definition at line 99 of file update-thread.h.

Referenced by Run().

UpdateStatusLogger Dali::Internal::Adaptor::UpdateThread::mUpdateStatusLogger
private

Object that logs the update-status as required.

Definition at line 104 of file update-thread.h.

Referenced by Run().


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