FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-39877: PyGILState_Ensure() don't call PyEval_InitThreads() by vstinner · Pull Request #18891 · python/cpython · GitHub

/ cpython Public

bpo-39877: PyGILState_Ensure() don't call PyEval_InitThreads() - #18891

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:gilstate_ensure
Mar 9, 2020
Merged

bpo-39877: PyGILState_Ensure() don't call PyEval_InitThreads()#18891
vstinner merged 1 commit into
python:masterfrom
vstinner:gilstate_ensure

Conversation

vstinner commented Mar 9, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

PyGILState_Ensure() doesn't call PyEval_InitThreads() anymore when a
new Python thread state is created. The GIL is created by
Py_Initialize() since Python 3.7, it's not needed to call
PyEval_InitThreads() explicitly.

Add an assertion to ensure that the GIL is already created.

https://bugs.python.org/issue39877

PyGILState_Ensure() doesn't call PyEval_InitThreads() anymore when a
new Python thread state is created. The GIL is created by
Py_Initialize() since Python 3.7, it's not needed to call
PyEval_InitThreads() explicitly.

Add an assertion to ensure that the GIL is already created.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL