A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-February/032961.html below:

Simplified Global Interpreter Lock acquisition for extensions

[Python-Dev] PEP Draft: Simplified Global Interpreter Lock acquisition for extensions [Python-Dev] PEP Draft: Simplified Global Interpreter Lock acquisition for extensionsSkip Montanaro skip@pobox.com
Tue, 4 Feb 2003 21:53:49 -0600
    Mark> Every call to PyAutoThreadState_Ensure must be matched by a call
    Mark> to PyAutoThreadState_Release on the same thread.

This suggests to me that it would be nice to have a try/finally type of
construct available for C programmers, probably some ugly CPP macros
involving gotos.  I think it would simplify the call matching you indicated
(making deadlock avoidance easier) and make DECREF cleanup a bit nicer as
well.

Just a thought...

Skip



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4