threading
- From: Diego Zuccato <d_zuccato yahoo com>
- To: GTK list <gtk-list gnome org>
- Subject: threading
- Date: Fri, 06 Jul 2001 12:31:57 +0200
Hello all.
I'm writing an app where I have to "animate" a pixmap, even when the
main thread is busy for a long time.
So I use another thread that changes the pixmap between
gdk_threads_enter() and gdk_threads_leave().
Then, it calls gtk_main_iteration_do(FALSE) to actually update the
screen.
You probably can already see the problem : SOMETIMES I get a message
saying the main loop is already active in another thread, and once I got
the infamous "async reply" message from Xlib.
What should I do ?
Delay exit from the long callback function till the thread stops ? Put
gtk_main_iteration_do(FALSE) inside the gdk_threads_* ? Kill myself or
at least the whole project ? O:-)
Tks,
Diego.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]