summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}