diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-31 09:58:18 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-31 09:58:18 (GMT) |
commit | 6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538 (patch) | |
tree | 2a11e4b00c03e984b8a6b8be7dea3372f0cc0b98 /Modules/_sha3/sha3module.c | |
parent | 4efdb4177efcaf9f0fb577a95ede315a6b1c69c8 (diff) | |
download | cpython-6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538.zip cpython-6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538.tar.gz cpython-6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538.tar.bz2 |
Fix _sha3 module to actually release the GIL around its update function.
gcov is great.
Diffstat (limited to 'Modules/_sha3/sha3module.c')
-rw-r--r-- | Modules/_sha3/sha3module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |