Re: multithreaded redrawing
- From: "Michael Rothwell" <rothwell holly-springs nc us>
- To: <psionic psionic de>
- Cc: <gtk-app-devel-list gnome org>
- Subject: Re: multithreaded redrawing
- Date: Thu, 11 Oct 2001 16:52:52 -0400
When using threads with GTK, you might want to make UI updates only from the
main thread, and only send messages from the other threads to the main
thread.
----- Original Message -----
From: "Jochen Schaeuble" <psionic psionic de>
To: "Havoc Pennington" <hp redhat com>
Cc: <gtk-app-devel-list gnome org>
Sent: Wednesday, October 10, 2001 5:29 PM
Subject: Re: multithreaded redrawing
Hi!
I have another problem with multithreading. I have an IO function
that reads the stdout of a program using pipes and dumps it into
a GtkText. This thread is started inside a Gtk+ callback function. If
I'm right during the execution of the callback function the
gdk_threads are already locked. Therefore my application hangs if I
try to lock it again. My problem is that I now get an error message:
Xlib: unexpected async reply (sequence 0x2398)!
What am I doing wrong?
Thx in advance
jochen
On Tue, Oct 02, 2001 at 09:45:04PM -0400, Havoc Pennington wrote:
Jochen Schaeuble <psionic psionic de> writes:
I tried to use a pthread to add content to a GtkCTree. My problem is
that from time to time the application suffers redraw problems (the
content is not redrawn properly). If this happens the application
needs to be restartet. Is it possible to do this? Is there
anything I have to take care of? I just passed a pointer to a
GtkCTree
instance as param to the pthread function (I didn't do any thread
initialization with glib).
Read the FAQ about using GTK multithreaded. You need to init threads
and use locking.
Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]