Mercurial > cpython-lru_cache-weakref
diff Modules/stdwinmodule.c @ 9679:877d23bd5bdc legacy-trunk
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).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 21 Dec 1998 19:32:43 +0000 |
| parents | 38023a425e48 |
| children |
line wrap: on
line diff
--- a/Modules/stdwinmodule.c Mon Dec 21 19:28:37 1998 +0000 +++ b/Modules/stdwinmodule.c Mon Dec 21 19:32:43 1998 +0000 @@ -87,11 +87,11 @@ #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 @@ PyDict_SetItemString(d, "error", StdwinError) != 0) return; #ifdef WITH_THREAD - StdwinLock = allocate_lock(); + StdwinLock = PyThread_allocate_lock(); #endif }
