Fix _sha3 module to actually release the GIL around its update function.
gcov is great.
This commit is contained in:
parent
4efdb4177e
commit
6ffa5ce1f3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue