From 6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 31 Jul 2013 11:58:18 +0200 Subject: Fix _sha3 module to actually release the GIL around its update function. gcov is great. --- Modules/_sha3/sha3module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c index 32cd85a..0f47fc3 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(); } -- cgit v0.12