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

LibUV callback manager used to install call backs in the applications main loop. More...

#include <uv-callback-manager.h>

Inheritance diagram for Dali::Internal::Adaptor::UvCallbackManager:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::UvCallbackManager:
Collaboration graph
[legend]

Public Member Functions

 UvCallbackManager ()
 constructor More...
 
 ~UvCallbackManager ()
 destructor More...
 
virtual bool AddIdleCallback (CallbackBase *callback)
  More...
 
virtual void Start ()
 Starts the callback manager. More...
 
virtual void Stop ()
 Stop the callback manager and can remove all pending callbacks synchronously. More...
 
- Public Member Functions inherited from Dali::Internal::Adaptor::CallbackManager
virtual ~CallbackManager ()
 Virtual destructor. More...
 

Private Types

typedef std::list< CallbackData * > CallbackList
 list of callbacks installed More...
 

Private Member Functions

void RemoveCallbackFromContainer (CallbackData *callbackData)
 Removes a single call back from the container Always called from main thread. More...
 

Private Attributes

bool mRunning
 flag is set to true if when running More...
 
CallbackList mCallbackContainer
 container of live callbacks More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Dali::Internal::Adaptor::CallbackManager
static CallbackManagerNew ()
 Create a new call back interface. More...
 
- Protected Member Functions inherited from Dali::Internal::Adaptor::CallbackManager
 CallbackManager ()
 constructor More...
 

Detailed Description

LibUV callback manager used to install call backs in the applications main loop.

The manager keeps track of all callbacks, so that if Stop() is called it can remove them.

Definition at line 43 of file uv-callback-manager.h.

Member Typedef Documentation

list of callbacks installed

Definition at line 83 of file uv-callback-manager.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::UvCallbackManager::UvCallbackManager ( )

constructor

Definition at line 123 of file uv-callback-manager.cpp.

Dali::Internal::Adaptor::UvCallbackManager::~UvCallbackManager ( )
inline

destructor

Definition at line 56 of file uv-callback-manager.h.

Member Function Documentation

bool Dali::Internal::Adaptor::UvCallbackManager::AddIdleCallback ( CallbackBase callback)
virtual
void Dali::Internal::Adaptor::UvCallbackManager::RemoveCallbackFromContainer ( CallbackData callbackData)
private

Removes a single call back from the container Always called from main thread.

Parameters
callbackDatacallback data

Definition at line 171 of file uv-callback-manager.cpp.

References mCallbackContainer.

Referenced by AddIdleCallback().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::UvCallbackManager::Start ( )
virtual

Starts the callback manager.

Implements Dali::Internal::Adaptor::CallbackManager.

Definition at line 128 of file uv-callback-manager.cpp.

References DALI_ASSERT_DEBUG, and mRunning.

void Dali::Internal::Adaptor::UvCallbackManager::Stop ( )
virtual

Stop the callback manager and can remove all pending callbacks synchronously.

This call will synchronise with the main loop and not return until all call backs have been deleted.

Implements Dali::Internal::Adaptor::CallbackManager.

Definition at line 134 of file uv-callback-manager.cpp.

References DALI_ASSERT_DEBUG, mCallbackContainer, and mRunning.

Member Data Documentation

CallbackList Dali::Internal::Adaptor::UvCallbackManager::mCallbackContainer
private

container of live callbacks

Definition at line 86 of file uv-callback-manager.h.

Referenced by AddIdleCallback(), RemoveCallbackFromContainer(), and Stop().

bool Dali::Internal::Adaptor::UvCallbackManager::mRunning
private

flag is set to true if when running

Definition at line 85 of file uv-callback-manager.h.

Referenced by AddIdleCallback(), Start(), and Stop().


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