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

The render-thread is responsible for calling Core::Render() after each update. More...

#include <render-thread.h>

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

Public Member Functions

 RenderThread (ThreadSynchronization &sync, AdaptorInternalServices &adaptorInterfaces, const EnvironmentOptions &environmentOptions)
 Create the render-thread; this will not do anything until Start() is called. More...
 
 ~RenderThread ()
 Destructor. More...
 
void Start ()
 Starts the render-thread. More...
 
void Stop ()
 Stops the render-thread. More...
 

Private Member Functions

bool Run ()
 This method is used by the Render thread for rendering the Core to the screen. More...
 
void ProcessRequest (RenderRequest *request)
 Check if main thread made any requests, e.g. More...
 
 RenderThread (const RenderThread &renderThread)
 
RenderThreadoperator= (const RenderThread &renderThread)
 

Static Private Member Functions

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

Private Attributes

ThreadSynchronizationmThreadSynchronization
 Used to synchronize the all threads. More...
 
Dali::Integration::CoremCore
 Dali core reference. More...
 
pthread_t * mThread
 render thread More...
 
const EnvironmentOptionsmEnvironmentOptions
 Environment options. More...
 
RenderHelper mRenderHelper
 Helper class for EGL, pre & post rendering. More...
 

Detailed Description

The render-thread is responsible for calling Core::Render() after each update.

Definition at line 52 of file render-thread.h.

Constructor & Destructor Documentation

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

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

Parameters
[in]syncthread synchronization object
[in]adaptorInterfacesbase adaptor interface
[in]environmentOptionsenvironment options

Definition at line 45 of file render-thread.cpp.

Dali::Internal::Adaptor::RenderThread::~RenderThread ( )

Destructor.

Definition at line 56 of file render-thread.cpp.

Dali::Internal::Adaptor::RenderThread::RenderThread ( const RenderThread renderThread)
private

Member Function Documentation

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

Helper for the thread calling the entry function.

Parameters
[in]ThisA pointer to the current RenderThread object

Definition at line 102 of file render-thread.h.

Referenced by Start().

Here is the caller graph for this function:

RenderThread& Dali::Internal::Adaptor::RenderThread::operator= ( const RenderThread renderThread)
private
void Dali::Internal::Adaptor::RenderThread::ProcessRequest ( RenderRequest request)
private
bool Dali::Internal::Adaptor::RenderThread::Run ( )
private
void Dali::Internal::Adaptor::RenderThread::Start ( )

Starts the render-thread.

Definition at line 60 of file render-thread.cpp.

References DALI_ASSERT_ALWAYS, DALI_LOG_INFO, InternalThreadEntryFunc(), mRenderHelper, mThread, and Dali::Internal::Adaptor::RenderHelper::Start().

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::RenderThread::Stop ( )

Stops the render-thread.

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

References DALI_LOG_INFO, mRenderHelper, mThread, and Dali::Internal::Adaptor::RenderHelper::Stop().

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

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

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

Dali core reference.

Definition at line 119 of file render-thread.h.

Referenced by Run().

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

Environment options.

Definition at line 121 of file render-thread.h.

Referenced by Run().

RenderHelper Dali::Internal::Adaptor::RenderThread::mRenderHelper
private

Helper class for EGL, pre & post rendering.

Definition at line 122 of file render-thread.h.

Referenced by ProcessRequest(), Run(), Start(), and Stop().

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

render thread

Definition at line 120 of file render-thread.h.

Referenced by Start(), and Stop().

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

Used to synchronize the all threads.

Definition at line 118 of file render-thread.h.

Referenced by ProcessRequest(), and Run().


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