From fa99f722ed6b06ea7f6b56a8816c61ecd5053289 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sat, 26 Jan 2019 13:41:33 +0100 Subject: Released the Python global lock while waiting for all tasks. --- plugins/pychrysalide/core/queue.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v0.11.2-87-g4458