From: Christian Heimes Date: Wed, 31 Jul 2013 09:58:18 +0000 (+0200) Subject: Fix _sha3 module to actually release the GIL around its update function. X-Git-Tag: v3.4.0a1~37^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538;p=thirdparty%2FPython%2Fcpython.git Fix _sha3 module to actually release the GIL around its update function. gcov is great. --- diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c index 32cd85a1efa9..0f47fc342934 100644 --- a/Modules/_sha3/sha3module.c +++ b/Modules/_sha3/sha3module.c @@ -322,7 +322,7 @@ SHA3_update(SHA3object *self, PyObject *args) 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(); }