pthreads in C++ with embedded Python

Jason Tackaberry tack at urandom.ca
Wed Jun 8 17:11:48 EDT 2011


On 11-06-07 07:29 PM, Tom Brown wrote:
> Any suggestions will be appreciated.

Why are you calling PyEval_ReleaseLock() in the CmdThread constructor?  
This looks suspicious.

Also, I don't see where CmdThread::lock() and CmdThread::unlock() are 
being invoked in your example.  Relics from your effort to create a 
reduced testcase I assume?

Cheers,
Jason.



More information about the Python-list mailing list