[Python-checkins] cpython (merge 3.4 -> default): Merge 3.4 (asyncio)

victor.stinner python-checkins at python.org
Mon Jan 26 22:44:11 CET 2015


https://hg.python.org/cpython/rev/233b43d6f333
changeset: 94327:233b43d6f333
parent: 94325:c16c2c409776
parent: 94326:0024942193e5
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Jan 26 22:43:52 2015 +0100
summary:
 Merge 3.4 (asyncio)
files:
 Modules/overlapped.c | 3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Modules/overlapped.c b/Modules/overlapped.c
--- a/Modules/overlapped.c
+++ b/Modules/overlapped.c
@@ -1146,10 +1146,13 @@
 if (Address == NULL)
 return NULL;
 
+ Py_BEGIN_ALLOW_THREADS
 PipeHandle = CreateFileW(Address,
 GENERIC_READ | GENERIC_WRITE,
 0, NULL, OPEN_EXISTING,
 FILE_FLAG_OVERLAPPED, NULL);
+ Py_END_ALLOW_THREADS
+
 PyMem_Free(Address);
 if (PipeHandle == INVALID_HANDLE_VALUE)
 return SetFromWindowsErr(0);
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /