[Python-checkins] cpython: Fix _sha3 module to actually release the GIL around its update function.
christian.heimes
python-checkins at python.org
Wed Jul 31 11:58:52 CEST 2013
http://hg.python.org/cpython/rev/6f2ba9a33bdf
changeset: 84929:6f2ba9a33bdf
parent: 84925:5cea8bc7bc7f
user: Christian Heimes <christian at cheimes.de>
date: Wed Jul 31 11:58:18 2013 +0200
summary:
Fix _sha3 module to actually release the GIL around its update function.
gcov is great.
files:
Modules/_sha3/sha3module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c
--- a/Modules/_sha3/sha3module.c
+++ b/Modules/_sha3/sha3module.c
@@ -322,7 +322,7 @@
GET_BUFFER_VIEW_OR_ERROUT(obj, &buf);
/* add new data, the function takes the length in bits not bytes */
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
if (self->lock == NULL && buf.len >= HASHLIB_GIL_MINSIZE) {
self->lock = PyThread_allocate_lock();
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list