#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 |
Glib loop controller.
Loop is running in separate thread.
utils::ScopedGlibLoop::ScopedGlibLoop | ( | ) |
Starts a loop in separate thread.
utils::ScopedGlibLoop::~ScopedGlibLoop | ( | ) |
Stops loop and waits for a thread.
|
private |
|
private |