Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utils::ScopedGlibLoop Class Reference

Glib loop controller. More...

#include <glib-loop.hpp>

Public Member Functions

 ScopedGlibLoop ()
 Starts a loop in separate thread. More...
 
 ~ScopedGlibLoop ()
 Stops loop and waits for a thread. More...
 

Private Attributes

std::unique_ptr< GMainLoop,
void(*)(GMainLoop *)> 
mLoop
 
std::thread mLoopThread
 

Detailed Description

Glib loop controller.

Loop is running in separate thread.

Constructor & Destructor Documentation

utils::ScopedGlibLoop::ScopedGlibLoop ( )

Starts a loop in separate thread.

utils::ScopedGlibLoop::~ScopedGlibLoop ( )

Stops loop and waits for a thread.

Member Data Documentation

std::unique_ptr<GMainLoop, void(*)(GMainLoop*)> utils::ScopedGlibLoop::mLoop
private
std::thread utils::ScopedGlibLoop::mLoopThread
private

The documentation for this class was generated from the following files: