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


Groups > comp.lang.python > #7262

Re: pthreads in C++ with embedded Python

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 <tack@urandom.ca>
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 <tack@urandom.ca>
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 <BANLkTim6kOWDY4Hggcv9qXh224sqXFmsaA@mail.gmail.com>
In-Reply-To <BANLkTim6kOWDY4Hggcv9qXh224sqXFmsaA@mail.gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.36.1307568228.11593.python-list@python.org> (permalink)
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

Show key headers only | 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