GTK+ thread problem (program freezing using these 2 GTK+ commands...)

We have a Python GTK+ program that uses threads.  
If we DON'T run the GTK+ GUI
code then multitasking is fine and every thread gets a little CPU time.

If we run a GTK+ GUI in the main parent process/thread then program

The PyGTK commands called gtk.threads.thread_enter() and
gtk.gdk.threads_leave() are used to avoid conflicts caused by
two threads writing to GUI at the same time.  The disallow/allow
other threads to write to GUI as needed.

It would seem that the problem are with these two commands but
we cannot seem to find the problem.  As you know, threads
are not the easiest things to debug.

We are wondering if Python threads are unstable.
Are they??

Any ideas at all how to begin to solve this?



Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385

Phone: (619) 553-9973
Fax  : (619) 553-6521
Email: seberino spawar navy mil

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]