[Patches] [ python-Patches-1031233 ] Clean up discussion of new C thread idiom

SourceForge.net noreply at sourceforge.net
Mon Sep 20 16:14:20 CEST 2004


Patches item #1031233, was opened at 2004-09-20 06:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1031233&group_id=5470

Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg Chapman (glchapman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Clean up discussion of new C thread idiom

Initial Comment:
In init.tex, the code for the typical idiom for C
threads now uses the PyGILState functions.  However the
preceeding discussion still refers to the need to
acquire an interpreter state, etc.  Attached is a patch
which tries to clean this up a little.  I removed the
paragraph about interpreter states (which raises the
possibility of creating a new interpreter state) since
multiple interpreter states are, I believe,
incompatible (or at least untested) with PyGILState. 
It's possible that more of PEP 311 should be included
here, particularly the part about having to call
PyEval_InitThreads on the main thread before using any
of the thread APIs.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1031233&group_id=5470


More information about the Patches mailing list