diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-31 11:58:18 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-31 11:58:18 +0200 |
commit | 6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538 (patch) | |
tree | 2a11e4b00c03e984b8a6b8be7dea3372f0cc0b98 /Modules/_sha3 | |
parent | Test Py_IncRef() and Py_DecRef() C functions (diff) | |
download | cpython-6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538.tar.gz cpython-6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538.tar.bz2 cpython-6ffa5ce1f3daad9dc7beb5b74444f74d5c4a9538.zip |
Fix _sha3 module to actually release the GIL around its update function.
gcov is great.
Diffstat (limited to 'Modules/_sha3')
-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 32cd85a1efa..0f47fc34293 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(); } |