aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-09-02 20:18:29 +0100
committerWillow Liquorice <willow@howhill.com>2022-10-03 00:44:27 +0100
commite40fef0221eb7ca34ce8f74022f0562e1e3d83b1 (patch)
tree41d4bb10d0e5793ccea28c7fc90272b12b415dfc /src/util
parenta70ef57f05862d6e6c107bd5239a0c0dd6d501b9 (diff)
downloadgnunet-e40fef0221eb7ca34ce8f74022f0562e1e3d83b1.tar.gz
gnunet-e40fef0221eb7ca34ce8f74022f0562e1e3d83b1.zip
-DOC: Comment stripping pass in UTIL scheduler library
Diffstat (limited to 'src/util')
-rw-r--r--src/util/scheduler.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index 7e035ae3d..acae4d7e2 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -687,20 +687,6 @@ select_loop (struct GNUNET_SCHEDULER_Handle *sh,
687 struct DriverContext *context); 687 struct DriverContext *context);
688 688
689 689
690/**
691 * Initialize and run scheduler. This function will return when all
692 * tasks have completed. On systems with signals, receiving a SIGTERM
693 * (and other similar signals) will cause #GNUNET_SCHEDULER_shutdown()
694 * to be run after the active task is complete. As a result, SIGTERM
695 * causes all active tasks to be scheduled with reason
696 * #GNUNET_SCHEDULER_REASON_SHUTDOWN. (However, tasks added
697 * afterwards will execute normally!). Note that any particular signal
698 * will only shut down one scheduler; applications should always only
699 * create a single scheduler.
700 *
701 * @param task task to run immediately
702 * @param task_cls closure of @a task
703 */
704void 690void
705GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_TaskCallback task, 691GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_TaskCallback task,
706 void *task_cls) 692 void *task_cls)
@@ -1345,20 +1331,6 @@ GNUNET_SCHEDULER_add_shutdown (GNUNET_SCHEDULER_TaskCallback task,
1345} 1331}
1346 1332
1347 1333
1348/**
1349 * Schedule a new task to be run as soon as possible with the
1350 * (transitive) ignore-shutdown flag either explicitly set or
1351 * explicitly enabled. This task (and all tasks created from it,
1352 * other than by another call to this function) will either count or
1353 * not count for the "lifeness" of the process. This API is only
1354 * useful in a few special cases.
1355 *
1356 * @param lifeness #GNUNET_YES if the task counts for lifeness, #GNUNET_NO if not.
1357 * @param task main function of the task
1358 * @param task_cls closure of @a task
1359 * @return unique task identifier for the job
1360 * only valid until @a task is started!
1361 */
1362struct GNUNET_SCHEDULER_Task * 1334struct GNUNET_SCHEDULER_Task *
1363GNUNET_SCHEDULER_add_now_with_lifeness (int lifeness, 1335GNUNET_SCHEDULER_add_now_with_lifeness (int lifeness,
1364 GNUNET_SCHEDULER_TaskCallback task, 1336 GNUNET_SCHEDULER_TaskCallback task,