Python+GTK thread question (program freezing)...

C

Christian Seberino

We have a 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
freezes.

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
the guys cannot seem to find the problem. As you know, threads
are not the easiest things to debug.

I don't want to think Python threads are unstable.
Are they??

Any ideas at all how to begin to solve this?

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top