mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Thanks to Chris Herborth, the thread primitives now have proper Py*
names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
This commit is contained in:
parent
14f53a7757
commit
65d5b5763c
20 changed files with 507 additions and 548 deletions
|
@ -87,11 +87,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "pythread.h"
|
||||
|
||||
static type_lock StdwinLock; /* Lock held when interpreter not locked */
|
||||
static PyThread_type_lock StdwinLock; /* Lock held when interpreter not locked */
|
||||
|
||||
#define BGN_STDWIN Py_BEGIN_ALLOW_THREADS acquire_lock(StdwinLock, 1);
|
||||
#define RET_STDWIN release_lock(StdwinLock); Py_BLOCK_THREADS
|
||||
#define END_STDWIN release_lock(StdwinLock); Py_END_ALLOW_THREADS
|
||||
#define BGN_STDWIN Py_BEGIN_ALLOW_THREADS PyThread_acquire_lock(StdwinLock, 1);
|
||||
#define RET_STDWIN PyThread_release_lock(StdwinLock); Py_BLOCK_THREADS
|
||||
#define END_STDWIN PyThread_release_lock(StdwinLock); Py_END_ALLOW_THREADS
|
||||
|
||||
#else
|
||||
|
||||
|
@ -2659,6 +2659,6 @@ initstdwin()
|
|||
PyDict_SetItemString(d, "error", StdwinError) != 0)
|
||||
return;
|
||||
#ifdef WITH_THREAD
|
||||
StdwinLock = allocate_lock();
|
||||
StdwinLock = PyThread_allocate_lock();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue