[Python-Dev] Change definition of Py_END_ALLOW_THREADS? (original) (raw)
Gerald S. Williams gsw@agere.com
Thu, 13 Feb 2003 13:23:48 -0500
- Previous message: [Python-Dev] Changing SF tracker email preferences
- Next message: [Python-Dev] Change definition of Py_END_ALLOW_THREADS?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mark Hammond wrote:
My entire problem is solved simply by making the API look like:
oldstate = PyAutoThreadStateEnsure(); ... PyAutoThreadStateRelease(oldstate);
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
- Previous message: [Python-Dev] Changing SF tracker email preferences
- Next message: [Python-Dev] Change definition of Py_END_ALLOW_THREADS?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]