Re: understanding of GMainContext
- From: Yiannis <odysseus lost gmail com>
- To: "Tristan Van Berkom" <tvb gnome org>
- Cc: gtk-list gnome org
- Subject: Re: understanding of GMainContext
- Date: Tue, 3 Oct 2006 20:11:36 +0100
On 03/10/06, Tristan Van Berkom <tvb gnome org> wrote:
Yiannis wrote:
> Hi,
>
> I am trying to understand the use of GMainContext.... Are there any
> examples
> somewhere??
You typically dont need to create one ever - unless you want
to run a GMainLoop in a seperate thread - you'd need a context
for that thread.
I thought that a GMainContext would keep the "main loop code".... a
data structure holding pointers to the functions or something... I
guess these can be include g_source_add or g_timeout_add as I am
currently doing... which yes they wouldnt be passed if a GMainLoop was
running into another thread... Thanks again for your reply.
--
-- Yiannis
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]