[Patches] [ python-Patches-1031233 ] Clean up discussion of new C
thread idiom
SourceForge.net
noreply at sourceforge.net
Thu Sep 23 14:13:46 CEST 2004
Patches item #1031233, was opened at 2004-09-20 06:14
Message generated for change (Comment added) made by glchapman
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.
----------------------------------------------------------------------
>Comment By: Greg Chapman (glchapman)
Date: 2004-09-23 04:13
Message:
Logged In: YES
user_id=86307
Changed my added text to refer to Py_NewInterpreter, rather
than PyInterpreterState_New.
----------------------------------------------------------------------
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