你会发现程序会在g_main_loop_run函数阻塞,这就是glib main loop了,如果没有人通知它退出,它是不会退出的。 通知循环退出的函数是g_main_loop_quit。 怎么通知呢?
確定! 回上一頁