ostree_sysroot_lock_async (sysroot,NULL, (GAsyncReadyCallback)on_sysroot_lock_acquired, &state);while(state.running)g_main_context_iteration(state.mainctx, TRUE); } ret = TRUE; out: g_main_context_pop_thread_default (state.mainctx); g_main_context_unref (state.mainctx);returnret; }...
GMainContext *ctx =g_main_loop_get_context(loop); g_main_context_iteration (ctx, FALSE); g_usleep (50); } g_object_unref (manager); g_object_unref (proxy); dbus_g_connection_unref (bus); logging_shutdown ();return0; } 开发者ID:MasterOfPupets,项目名称:ModemManager,代码行数:60,...
g_main_context_iteration一就M当于进X了g_main_loop_runHowtoMountMaemoFileSystemGuideIssue:HowtoMountMaemoFileSystemGuideIssue:SystemAnalysisandDesignDocumentsIssueDate:DocumentidentifierEvent_loop是消息处理循环, 星而取出能取出的消息并处理,maingst_parse_launchv_gst_parse_escapegst_parse_lau 10、nch把...
/*id of the server's source within the GMainContext*/ staticguint source_id; /*iterate the default main context until there are no events to dispatch*/ staticvoid iterate (void) { while(g_main_context_iteration(NULL,FALSE)) {
#36 0x00002ae97cab84ac in g_main_context_iteration () at /lib64/libglib-2.0.so.0 #37 0x00002ae9781fe45c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5 #38 0x00002ae9781ae6db in QEventLoop::exec(QFlags<QEventLoop::Pr...
g_main_context_get_thread_default g_main_context_get_type g_main_context_invoke g_main_context_invoke_full g_main_context_is_owner g_main_context_iteration g_main_context_new g_main_context_pending g_main_context_pop_thread_default g_main_context_prepare g_main_context_push...
#79 0x007784b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #80 0x00cce5d5 in QEventDispatcherGlib::processEvents (this=0x93c7878, flags=...) at kernel/qeventdispatcher_glib.cpp:412 #81 0x01086135 in QGuiEventDispatcherGlib::processEvents (this=0x93c7878, flags=.....
context_iteration 收dbus消息,然后设置 就相当于进入了 main 相应的状态 g_main_loop_run gst_element_set_state (pipeline, GST_STATE_PAUSED); event_loop (pipeline, FALSE, gst_parse_launchv GST_STATE_PLAYING); gst_element_set_state (pipeline, GST_STATE_PLAYING) g_main_context_iteration _gst_...
context = gobject.main_context_default() self.__pending = self.context.pending self.__iteration = self.context.iteration self.loop = gobject.MainLoop() self.__crash = self.loop.quit self.__run = self.loop.run else: import gtk self.__pending = gtk.events_pending self.__iteration = ...
__running = True self.__mainloop = GObject.MainLoop() context = self.__mainloop.get_context() try: while self.__running: if context.pending(): context.iteration(True) else: time.sleep(0.01) except KeyboardInterrupt: pass self.zeroconf.close() logger.info('MDNSListener.run()') ...