2 #include <zypp-core/ng/base/EventDispatcher> 15 d->_dispatcher = std::move(disp);
16 d->_loop = g_main_loop_new( reinterpret_cast<GMainContext*>(d->_dispatcher->nativeDispatcherHandle()),
false );
26 g_main_loop_unref( d_func()->_loop );
43 g_main_context_push_thread_default( reinterpret_cast<GMainContext*>(d->_dispatcher->nativeDispatcherHandle()) );
45 d->_dispatcher->clearUnrefLaterList();
46 g_main_context_pop_thread_default( reinterpret_cast<GMainContext*>(d->_dispatcher->nativeDispatcherHandle()) );
48 g_main_loop_run( d->_loop );
53 g_main_loop_quit( d_func()->_loop );
58 return d_func()->_dispatcher;
std::shared_ptr< EventDispatcher > eventDispatcher() const
EventLoop(GMainContext *ctx=nullptr)
ZYPP_IMPL_PRIVATE(UnixSignalSource)
EventLoopPrivate(EventLoop &p)
struct _GMainContext GMainContext
static Ptr create(GMainContext *ctx=nullptr)