리눅스
GMainLoop 동작방식
code cat
2014. 7. 14. 16:08
출처:https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html
The GMainLoop data type represents a main event loop.
A GMainLoop is created with g_main_loop_new()
. After adding the initial event sources, g_main_loop_run()
is called. This continuously checks for new events from each of the event sources and dispatches them. Finally, the processing of an event from one of the sources leads to a call to g_main_loop_quit()
to exit the main loop, andg_main_loop_run()
returns.