summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-26 12:41:33 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-26 12:41:33 (GMT)
commitfa99f722ed6b06ea7f6b56a8816c61ecd5053289 (patch)
tree0d2ef8282a627f91f49bacbbac83acb6ac07945f
parent135a05b755d4dcf8c3fadc7befe6229dfcdc1e4f (diff)
Released the Python global lock while waiting for all tasks.
-rw-r--r--plugins/pychrysalide/core/queue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/pychrysalide/core/queue.c b/plugins/pychrysalide/core/queue.c
index 39dd576..8917712 100644
--- a/plugins/pychrysalide/core/queue.c
+++ b/plugins/pychrysalide/core/queue.c
@@ -56,8 +56,14 @@ static PyObject *py_queue_wait_for_all_global_works(PyObject *, PyObject *);
static PyObject *py_queue_wait_for_all_global_works(PyObject *self, PyObject *args)
{
+ PyThreadState *_save; /* Sauvegarde de contexte */
+
+ Py_UNBLOCK_THREADS;
+
wait_for_all_global_works();
+ Py_BLOCK_THREADS;
+
Py_RETURN_NONE;
}