aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_scheduler_lib.h15
-rw-r--r--src/util/scheduler.c13
2 files changed, 15 insertions, 13 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index e5c361567..f9b2736e4 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -330,13 +330,14 @@ typedef void
330 * Function called by external event loop implementations to initialize 330 * Function called by external event loop implementations to initialize
331 * the scheduler. An external implementation has to provide @a driver 331 * the scheduler. An external implementation has to provide @a driver
332 * which contains callbacks for the scheduler (see definition of struct 332 * which contains callbacks for the scheduler (see definition of struct
333 * #GNUNET_SCHEDULER_Driver) for instructing the external implementation 333 * #GNUNET_SCHEDULER_Driver). The callbacks are used to instruct the
334 * to watch for events. If it detects any event it is expected to call 334 * external implementation to watch for events. If it detects any of
335 * #GNUNET_SCHEDULER_do_work to let the scheduler handle it. If an event 335 * those events it is expected to call #GNUNET_SCHEDULER_do_work to let
336 * is related to a specific task (e.g. the scheduler gave instructions 336 * the scheduler handle it. If an event is related to a specific task
337 * to watch a file descriptor), the external implementation is expected 337 * (e.g. the scheduler gave instructions to watch a file descriptor),
338 * to mark that task ready before by calling #GNUNET_SCHEDULER_task_ready. 338 * the external implementation is expected to mark that task ready
339 339 * before by calling #GNUNET_SCHEDULER_task_ready.
340 *
340 * This function has to be called before any tasks are scheduled and 341 * This function has to be called before any tasks are scheduled and
341 * before GNUNET_SCHEDULER_do_work is called for the first time. It 342 * before GNUNET_SCHEDULER_do_work is called for the first time. It
342 * allocates resources that have to be freed again by calling 343 * allocates resources that have to be freed again by calling
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index 05a951e19..51afc85e5 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -2128,12 +2128,13 @@ GNUNET_SCHEDULER_do_work (struct GNUNET_SCHEDULER_Handle *sh)
2128 * Function called by external event loop implementations to initialize 2128 * Function called by external event loop implementations to initialize
2129 * the scheduler. An external implementation has to provide @a driver 2129 * the scheduler. An external implementation has to provide @a driver
2130 * which contains callbacks for the scheduler (see definition of struct 2130 * which contains callbacks for the scheduler (see definition of struct
2131 * #GNUNET_SCHEDULER_Driver) for instructing the external implementation 2131 * #GNUNET_SCHEDULER_Driver). The callbacks are used to instruct the
2132 * to watch for events. If it detects any event it is expected to call 2132 * external implementation to watch for events. If it detects any of
2133 * #GNUNET_SCHEDULER_do_work to let the scheduler handle it. If an event 2133 * those events it is expected to call #GNUNET_SCHEDULER_do_work to let
2134 * is related to a specific task (e.g. the scheduler gave instructions 2134 * the scheduler handle it. If an event is related to a specific task
2135 * to watch a file descriptor), the external implementation is expected 2135 * (e.g. the scheduler gave instructions to watch a file descriptor),
2136 * to mark that task ready before by calling #GNUNET_SCHEDULER_task_ready. 2136 * the external implementation is expected to mark that task ready
2137 * before by calling #GNUNET_SCHEDULER_task_ready.
2137 2138
2138 * This function has to be called before any tasks are scheduled and 2139 * This function has to be called before any tasks are scheduled and
2139 * before GNUNET_SCHEDULER_do_work is called for the first time. It 2140 * before GNUNET_SCHEDULER_do_work is called for the first time. It