Re: Proper use of g_main_context_iteration
- From: Ben Iofel <iofelben gmail com>
- To: Jacques Pelletier <jpelletier ieee org>, gtk-app-devel-list gnome org
- Subject: Re: Proper use of g_main_context_iteration
- Date: Wed, 12 Aug 2015 03:55:56 +0000
Why not make it single threaded with
https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-main-context-add-poll
On Tue, Aug 11, 2015 at 8:27 PM Jacques Pelletier <jpelletier ieee org>
wrote:
Hi,
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?
Thanks!
JP
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]