improve documentation
authorlurchi <lurchi@strangeplace.net>
Thu, 1 Feb 2018 19:09:13 +0000 (20:09 +0100)
committerlurchi <lurchi@strangeplace.net>
Thu, 1 Feb 2018 19:09:13 +0000 (20:09 +0100)
src/include/gnunet_scheduler_lib.h
src/util/scheduler.c

index e5c361567967dd44df1fe3f6edefcfa2b5c57ec0..f9b2736e426fdc57196a122b22386281935ab90e 100644 (file)
@@ -330,13 +330,14 @@ typedef void
  * Function called by external event loop implementations to initialize
  * the scheduler. An external implementation has to provide @a driver
  * which contains callbacks for the scheduler (see definition of struct
- * #GNUNET_SCHEDULER_Driver) for instructing the external implementation
- * to watch for events. If it detects any event it is expected to call
- * #GNUNET_SCHEDULER_do_work to let the scheduler handle it. If an event
- * is related to a specific task (e.g. the scheduler gave instructions
- * to watch a file descriptor), the external implementation is expected
- * to mark that task ready before by calling #GNUNET_SCHEDULER_task_ready.
-
+ * #GNUNET_SCHEDULER_Driver). The callbacks are used to instruct the 
+ * external implementation to watch for events. If it detects any of
+ * those events it is expected to call #GNUNET_SCHEDULER_do_work to let
+ * the scheduler handle it. If an event is related to a specific task
+ * (e.g. the scheduler gave instructions to watch a file descriptor),
+ * the external implementation is expected to mark that task ready
+ * before by calling #GNUNET_SCHEDULER_task_ready.
+ *
  * This function has to be called before any tasks are scheduled and
  * before GNUNET_SCHEDULER_do_work is called for the first time. It 
  * allocates resources that have to be freed again by calling
index 05a951e19836373fcf719258df01c4206d0cbaf7..51afc85e55b0970fcc427fe2c3bf4313edd67179 100644 (file)
@@ -2128,12 +2128,13 @@ GNUNET_SCHEDULER_do_work (struct GNUNET_SCHEDULER_Handle *sh)
  * Function called by external event loop implementations to initialize
  * the scheduler. An external implementation has to provide @a driver
  * which contains callbacks for the scheduler (see definition of struct
- * #GNUNET_SCHEDULER_Driver) for instructing the external implementation
- * to watch for events. If it detects any event it is expected to call
- * #GNUNET_SCHEDULER_do_work to let the scheduler handle it. If an event
- * is related to a specific task (e.g. the scheduler gave instructions
- * to watch a file descriptor), the external implementation is expected
- * to mark that task ready before by calling #GNUNET_SCHEDULER_task_ready.
+ * #GNUNET_SCHEDULER_Driver). The callbacks are used to instruct the 
+ * external implementation to watch for events. If it detects any of
+ * those events it is expected to call #GNUNET_SCHEDULER_do_work to let
+ * the scheduler handle it. If an event is related to a specific task
+ * (e.g. the scheduler gave instructions to watch a file descriptor),
+ * the external implementation is expected to mark that task ready
+ * before by calling #GNUNET_SCHEDULER_task_ready.
 
  * This function has to be called before any tasks are scheduled and
  * before GNUNET_SCHEDULER_do_work is called for the first time. It