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/033383.html below:

[Python-Dev] Change definition of Py_END_ALLOW_THREADS?

[Python-Dev] Change definition of Py_END_ALLOW_THREADS? [Python-Dev] Change definition of Py_END_ALLOW_THREADS?Gerald S. Williams gsw@agere.com
Thu, 13 Feb 2003 13:23:48 -0500
Mark Hammond wrote:
> My entire problem is solved simply by making the API look like:
> 
> old_state = PyAutoThreadState_Ensure();
> ...
> PyAutoThreadState_Release(old_state);

Aargh! I had an e-mail composed about that right away,
but didn't press send for fear of increasing the noise
level of Python-Dev even more. When you said saving of
state is a PITA, I figured you meant that this wasn't
going to work so easily. (Next time I'll at least send
a private e-mail.)

Should there be Py_BEGIN_AUTO_THREAD_STATE_ENSURE and
Py_END_AUTO_THREAD_STATE_ENSURE macros (analogous to
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS) as well,
then?

-Jerry



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