[Python-checkins] cpython (merge 3.5 -> default): Issue #27533: Release GIL in nt._isdir
steve.dower
python-checkins at python.org
Sun Jul 17 23:50:48 EDT 2016
https://hg.python.org/cpython/rev/8823c660820e
changeset: 102391:8823c660820e
parent: 102389:f7a161e48af8
parent: 102390:ebf9a4c933e9
user: Steve Dower <steve.dower at microsoft.com>
date: Sun Jul 17 20:50:28 2016 -0700
summary:
Issue #27533: Release GIL in nt._isdir
files:
Misc/NEWS | 2 ++
Modules/posixmodule.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -23,6 +23,8 @@
Library
-------
+- Issue #27533: Release GIL in nt._isdir
+
- Issue #17711: Fixed unpickling by the persistent ID with protocol 0.
Original patch by Alexandre Vassalotti.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3893,10 +3893,12 @@
{
DWORD attributes;
+ Py_BEGIN_ALLOW_THREADS
if (!path->narrow)
attributes = GetFileAttributesW(path->wide);
else
attributes = GetFileAttributesA(path->narrow);
+ Py_END_ALLOW_THREADS
if (attributes == INVALID_FILE_ATTRIBUTES)
Py_RETURN_FALSE;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list