Gtk + threads + Main loop + idle + queues ( was: Re: more general: strategy against errors with gtk + threads )
- From: "Pablo" <paa-listas argentina com>
- To: "Felix Kater" <f kater2 gmx net>, <gtk-app-devel-list gnome org>
- Cc:
- Subject: Gtk + threads + Main loop + idle + queues ( was: Re: more general: strategy against errors with gtk + threads )
- Date: Sun, 6 Feb 2005 15:08:36 -0300
Hello,
These are a set of functions that can help with Gtk + Thread + Main Loop +
Idle time + Queues.
( full example and 'thqueue.c' + 'thqueue.h' )
http://www.geocities.com/p_armando/thqueue/thqueue-1.tar.gz
( Screenshot )
http://www.geocities.com/p_armando/thqueue/thqueue_example_1.png
I hope this help you. (Sorry for my bad english)
---
Pablo Armando.
PD: See:
http://mail.gnome.org/archives/gtk-app-devel-list/2003-December/msg00317.htm
l
----- Original Message -----
From: "Felix Kater" <f kater2 gmx net>
To: <gtk-app-devel-list gnome org>
Sent: Sunday, January 30, 2005 6:57 PM
Subject: more general: strategy against errors with gtk + threads
Hi,
in my last program I use threads more extensivly than before. From time
to time it crashes with gtk errors. Now I wonder if my strategy of
avoiding gtk errors in a multi threaded environment is suitable:
Up to now I tried to narrow all changes to gtk widgets (renaming labels,
draw into drawables etc.) to one single function, which is running in
idle time. It checks "change-booleans" for each widget and reacts on
that (renames labels etc.).
Is this the right way to do?
And what is actually - in general - causing the errors?
Thanks,
Felix
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]