summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/core/queue.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-01-04 10:15:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-01-04 10:15:57 (GMT)
commitaded4e75efc21319d5a777bf53bc087587f0740c (patch)
tree8b1b11415227679c79272cfb1df90f13801bb219 /plugins/pychrysalide/core/queue.c
parent8255d60ac64a851c2e7ca37d63aa1ba37d35b704 (diff)
Refreshed the Python documentation for the core features.
Diffstat (limited to 'plugins/pychrysalide/core/queue.c')
-rw-r--r--plugins/pychrysalide/core/queue.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/pychrysalide/core/queue.c b/plugins/pychrysalide/core/queue.c
index 8917712..cc76b77 100644
--- a/plugins/pychrysalide/core/queue.c
+++ b/plugins/pychrysalide/core/queue.c
@@ -58,6 +58,13 @@ static PyObject *py_queue_wait_for_all_global_works(PyObject *self, PyObject *ar
{
PyThreadState *_save; /* Sauvegarde de contexte */
+#define QUEUE_WAIT_FOR_ALL_GLOBAL_WORKS_METHOD PYTHON_METHOD_DEF \
+( \
+ wait_for_all_global_works, "", \
+ METH_NOARGS, py_queue, \
+ "Wait for all global tasks being processed." \
+)
+
Py_UNBLOCK_THREADS;
wait_for_all_global_works();
@@ -87,13 +94,8 @@ bool populate_core_module_with_queue(void)
PyObject *module; /* Module à recompléter */
static PyMethodDef py_queue_methods[] = {
-
- { "wait_for_all_global_works", py_queue_wait_for_all_global_works,
- METH_NOARGS,
- "wait_for_all_global_works(, /)\n--\n\nWait for all tasks being processed."
- },
+ QUEUE_WAIT_FOR_ALL_GLOBAL_WORKS_METHOD,
{ NULL }
-
};
module = get_access_to_python_module("pychrysalide.core");