Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7262

Re: pthreads in C++ with embedded Python

Date 2011-06-08 17:11 -0400
From Jason Tackaberry <tack@urandom.ca>
Subject Re: pthreads in C++ with embedded Python
References <BANLkTim6kOWDY4Hggcv9qXh224sqXFmsaA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.36.1307568228.11593.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: pthreads in C++ with embedded Python Jason Tackaberry <tack@urandom.ca> - 2011-06-08 17:11 -0400

csiph-web