Fix _sha3 module to actually release the GIL around its update function.

gcov is great.
This commit is contained in:
Christian Heimes 2013-07-31 11:58:18 +02:00
parent 4efdb4177e
commit 6ffa5ce1f3
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}