Re: Proper use of g_main_context_iteration



Hi

On 2015-08-11 20:27, Jacques Pelletier <jpelletier ieee org> wrote:
I'm using a separate thread for accepting clients on a socket server.
In this thread, the g_main_context_iteration is called to update the GUI.

Do I need to use g_main_context_acquire and/or g_main_context_release?

Apart from the code and the reference manuals, there's not much infos
about the proper use of these functions.
What are these for? Where can I get a more detailled description of
these functions?

There is a useful section of the GNOME programming guidelines on main contexts:

https://developer.gnome.org/programming-guidelines/stable/main-contexts.html

Philip Withnall deserves the credit for writing this. Thanks Philip!

--
http://amigadave.com/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]