[Top][All Lists]

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

[Discuss-gnuradio] Python Threads and C Semaphores

From: Jeremy Chew
Subject: [Discuss-gnuradio] Python Threads and C Semaphores
Date: Tue, 16 Jan 2007 15:23:13 +0800


I have a fat C++ extension to a Python 2.3.4 program. In all, I count
five threads. Of these, two are started in Python using
thread.start_new_thread(), and both of these wait on semaphores in the C++ extension using sem_wait(). There also is one Python thread spawned with gnuradio.gr.gr_threading.Thread.start(), and one thread running wholly in the extension.

I notice that when one of the Python threads calls the extension and waits on a semaphore, all but the C++ thread halt even when not waiting on any semaphore. How do we get this working right?

Thank you,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]