Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.064 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.01; 'subject:Python': 0.06; 'pm,': 0.10; 'wrote:': 0.14; 'subject:embedded': 0.16; 'testcase': 0.16; 'cheers,': 0.19; 'header:In-Reply-To:1': 0.21; 'example.': 0.23; 'looks': 0.31; 'calling': 0.31; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.35; 'received:ca': 0.36; 'subject:: ': 0.38; 'subject:with': 0.39; 'to:addr:python.org': 0.39; 'appreciated.': 0.40; 'your': 0.60; '07:29': 0.84; 'brown': 0.97 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on orion.urandom.ca X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Date: Wed, 08 Jun 2011 17:11:48 -0400 From: Jason Tackaberry User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110605 Thunderbird/5.0b2pre MIME-Version: 1.0 To: python-list@python.org Subject: Re: pthreads in C++ with embedded Python References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307568228 news.xs4all.nl 49184 [::ffff:82.94.164.166]:60388 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7262 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.