summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-18 23:56:58 +0000
committerGuido van Rossum <guido@python.org>1997-07-18 23:56:58 +0000
commitdaae8f67195b2f77877a23e40da803dc0d48b278 (patch)
treeba48927254395480eb1e51ca89273d2c244bf11b /Python/pythonrun.c
parent19ff48a8d6ac632864905a9188dcbaae63b0f2d0 (diff)
downloadcpython-daae8f67195b2f77877a23e40da803dc0d48b278.tar.gz
PyEval_SaveThread() and PyEval_RestoreThread() now return/take a
PyThreadState pointer instead of a (frame) PyObject pointer. This makes much more sense. It is backward incompatible, but that's no problem, because (a) the heaviest users are the Py_{BEGIN,END}_ ALLOW_THREADS macros here, which have been fixed too; (b) there are very few direct users; (c) those who use it are there will probably appreciate the change. Also, added new functions PyEval_AcquireThread() and PyEval_ReleaseThread() which allows the threads created by the thread module as well threads created by others (!) to set/reset the current thread, and at the same time acquire/release the interpreter lock. Much saner.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions