[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Multiple threads and gtk_main()
- From: Dong Luo <us917 yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Multiple threads and gtk_main()
- Date: Wed, 11 Jul 2007 12:47:09 -0700 (PDT)
I'm new to gtk and still reading tutorials, but can we
register a new signal to any global object (possiblely
main window), thus call back function can be connected
in the main thread and the signal can be emitted in
other threads?
--- Jonathan Winterflood
<jonathan winterflood gmail com> wrote:
> On 7/11/07, Gabriele Greco <gabriele greco darts it>
> wrote:
> >
> > Jonathan Winterflood wrote:
> > > Could the GAsyncQueue be configured to run a
> callback in the main thread
> > > when a element (or whatever gets pushed into it)
> is ready, just like one
> > > woud do with a GIOChannel ?
> > >
> > > It would be cleaner than a timeout or an idle
> function I think.
> > >
> > That will be the ideal solution, but unfortunately
> I fear there is no
> > API to hook an asyncqueue to a giochannel or
> straight to the main loop.
> >
> > --
> > Bye,
> > Gabry
>
>
> Indeed, it seems so...
> What about creating a couple of GIOChannels and
> using them the same as a
> pipe, but inside the program (then just pass
> pointers through it, the same
> as with the asynqueue?)
>
> I'm not sure it's possible though, just probing...
>
> Jonathan
> --
> <Morpheus> linux, c'est une question de VI ou de
> MORE
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
>
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
____________________________________________________________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]