From: Victor Stinner Date: Mon, 26 Jan 2015 21:43:39 +0000 (+0100) Subject: asyncio, _overlapped.ConnectPipe(): release the GIL X-Git-Tag: v3.4.3rc1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=498b1f62dbdf55837d16fcaea9758af0cbebec0d;p=python asyncio, _overlapped.ConnectPipe(): release the GIL --- diff --git a/Modules/overlapped.c b/Modules/overlapped.c index 1a081ecb77..ef77c8875a 100644 --- a/Modules/overlapped.c +++ b/Modules/overlapped.c @@ -1146,10 +1146,13 @@ ConnectPipe(OverlappedObject *self, PyObject *args) 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);