Re: [Fwd: callback and thread]
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: DINH "V." Hoà <dinh enserb fr>
- Cc: gtk-list gnome org
- Subject: Re: [Fwd: callback and thread]
- Date: Thu, 02 Nov 2000 12:24:18 +0100
Hi Hoà,
firstly I think this is a message for gtk-list gnome org, so I'm bringing it
there.
> > I would like to know why I can't call a thread that modify a gtkwidget
> > in an callback function.
> >
> > It hangs up as gdk_threads_enter is used.
> >
> > Here the problem :
> >
> > // main function :
> >
> > gdk_threads_enter()
> > gtk_main()
> > gdk_threads_leave()
> >
> > // callback :
> >
> > phread_create(... thread_function ...)
> >
> > // thread_function :
> >
> > gdk_threads_enter()
> > // modify a widget
> > gdk_threads_leave()
> >
> > When the program runs :
> >
> > The call of gdk_thread_enter in the thread function hangs.
> >
> > I think that the problem comes from the fact that 2 calls of
> > gdk_threads_enter
> > are likely to be nested ... but it is in a different thread. I would
> > like to
> > understand what is the exact problem and if a solution exists.
Actually this should work, AFAICT. Please post a example, demonstrating this
behaviour (This sould be a stripped down example though) and I will have a
look.
Bye,
Sebastian
--
Sebastian Wilhelmi | här ovanför alla molnen
mailto:wilhelmi ira uka de | är himmlen så förunderligt blå
http://goethe.ira.uka.de/~wilhelmi |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]