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

Class to control all the threads. More...

#include <thread-controller.h>

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

Public Member Functions

 ThreadController (AdaptorInternalServices &adaptorInterfaces, const EnvironmentOptions &environmentOptions)
 Constructor. More...
 
 ~ThreadController ()
 Non virtual destructor. More...
 
void Initialize ()
 Initializes the thread controller. More...
 
void Start ()
 Called AFTER the Init signal has been emitted. More...
 
void Pause ()
 When called, update and rendering is paused. More...
 
void Resume ()
 Resumes update/rendering after a previous pause. More...
 
void Stop ()
 Stops update/rendering altogether. More...
 
void RequestUpdate ()
 Called by the adaptor when core requires another update. More...
 
void RequestUpdateOnce ()
 Called by the adaptor when core requires one update. More...
 
void ReplaceSurface (RenderSurface *surface)
 Replaces the surface. More...
 
void SetRenderRefreshRate (unsigned int numberOfVSyncsPerRender)
  More...
 

Private Member Functions

 ThreadController (const ThreadController &)
 
ThreadControlleroperator= (const ThreadController &)
 

Private Attributes

ThreadControllerInterfacemThreadControllerInterface
 

Detailed Description

Class to control all the threads.

Definition at line 39 of file thread-controller.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::ThreadController::ThreadController ( AdaptorInternalServices adaptorInterfaces,
const EnvironmentOptions environmentOptions 
)
Dali::Internal::Adaptor::ThreadController::~ThreadController ( )

Non virtual destructor.

Not intended as base class.

Definition at line 62 of file thread-controller.cpp.

References mThreadControllerInterface.

Dali::Internal::Adaptor::ThreadController::ThreadController ( const ThreadController )
private

Member Function Documentation

void Dali::Internal::Adaptor::ThreadController::Initialize ( void  )

Initializes the thread controller.

Will do any required initialiszation, e.g. initialize EGL, create threads (if required), etc.

Note
When this function returns, the application Init signal should be emitted

Definition at line 67 of file thread-controller.cpp.

References Dali::Internal::Adaptor::ThreadControllerInterface::Initialize(), and mThreadControllerInterface.

Referenced by Dali::Internal::Adaptor::Adaptor::Start().

Here is the call graph for this function:

Here is the caller graph for this function:

ThreadController& Dali::Internal::Adaptor::ThreadController::operator= ( const ThreadController )
private
void Dali::Internal::Adaptor::ThreadController::Pause ( )

When called, update and rendering is paused.

Definition at line 77 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::Pause().

Referenced by Dali::Internal::Adaptor::Adaptor::Pause().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ThreadController::ReplaceSurface ( RenderSurface *  surface)

Replaces the surface.

Parameters
surfacenew surface

Definition at line 102 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::ReplaceSurface().

Referenced by Dali::Internal::Adaptor::Adaptor::ReplaceSurface().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ThreadController::RequestUpdate ( )

Called by the adaptor when core requires another update.

Definition at line 92 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::RequestUpdate().

Referenced by Dali::Internal::Adaptor::Adaptor::RequestUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ThreadController::RequestUpdateOnce ( )

Called by the adaptor when core requires one update.

Note
If Adaptor is paused, we do one update/render only

Definition at line 97 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::RequestUpdateOnce().

Referenced by Dali::Internal::Adaptor::Adaptor::RequestUpdateOnce().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ThreadController::Resume ( )

Resumes update/rendering after a previous pause.

Definition at line 82 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::Resume().

Referenced by Dali::Internal::Adaptor::Adaptor::Resume().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ThreadController::SetRenderRefreshRate ( unsigned int  numberOfVSyncsPerRender)

Definition at line 107 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::SetRenderRefreshRate().

Referenced by Dali::Internal::Adaptor::Adaptor::SetRenderRefreshRate().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::ThreadController::Start ( )

Called AFTER the Init signal has been emitted.

In other words, should be called AFTER the Init signal has been emitted and all messages for the first scene have been queued for update to process.

Definition at line 72 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::Start().

Referenced by Dali::Internal::Adaptor::Adaptor::NotifySceneCreated().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Stops update/rendering altogether.

Will shutdown EGL, destroy threads (if required) etc.

Definition at line 87 of file thread-controller.cpp.

References mThreadControllerInterface, and Dali::Internal::Adaptor::ThreadControllerInterface::Stop().

Referenced by Dali::Internal::Adaptor::Adaptor::Stop().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

ThreadControllerInterface* Dali::Internal::Adaptor::ThreadController::mThreadControllerInterface
private

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