diff options
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 52824d8b3..0ed48e793 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -613,7 +613,7 @@ destroy_task (struct Task *t) | |||
613 | * empty. Keep running tasks until we are either no longer running | 613 | * empty. Keep running tasks until we are either no longer running |
614 | * "URGENT" tasks or until we have at least one "pending" task (which | 614 | * "URGENT" tasks or until we have at least one "pending" task (which |
615 | * may become ready, hence we should select on it). Naturally, if | 615 | * may become ready, hence we should select on it). Naturally, if |
616 | * there are no more ready tasks, we also return. | 616 | * there are no more ready tasks, we also return. |
617 | * | 617 | * |
618 | * @param rs FDs ready for reading | 618 | * @param rs FDs ready for reading |
619 | * @param ws FDs ready for writing | 619 | * @param ws FDs ready for writing |
@@ -726,7 +726,7 @@ sighandler_shutdown () | |||
726 | 726 | ||
727 | /** | 727 | /** |
728 | * Check if the system is still life. Trigger shutdown if we | 728 | * Check if the system is still life. Trigger shutdown if we |
729 | * have tasks, but none of them give us lifeness. | 729 | * have tasks, but none of them give us lifeness. |
730 | * | 730 | * |
731 | * @return GNUNET_OK to continue the main loop, | 731 | * @return GNUNET_OK to continue the main loop, |
732 | * GNUNET_NO to exit | 732 | * GNUNET_NO to exit |
@@ -893,7 +893,7 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) | |||
893 | 893 | ||
894 | /** | 894 | /** |
895 | * Obtain the reason code for why the current task was | 895 | * Obtain the reason code for why the current task was |
896 | * started. Will return the same value as | 896 | * started. Will return the same value as |
897 | * the GNUNET_SCHEDULER_TaskContext's reason field. | 897 | * the GNUNET_SCHEDULER_TaskContext's reason field. |
898 | * | 898 | * |
899 | * @return reason(s) why the current task is run | 899 | * @return reason(s) why the current task is run |
@@ -1134,7 +1134,7 @@ GNUNET_SCHEDULER_add_with_priority (enum GNUNET_SCHEDULER_Priority prio, | |||
1134 | * will be scheduled for execution once the delay has expired. It | 1134 | * will be scheduled for execution once the delay has expired. It |
1135 | * will be run with the priority of the calling task. | 1135 | * will be run with the priority of the calling task. |
1136 | * | 1136 | * |
1137 | * @param delay when should this operation time out? Use | 1137 | * @param delay when should this operation time out? Use |
1138 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" | 1138 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" |
1139 | * @param task main function of the task | 1139 | * @param task main function of the task |
1140 | * @param task_cls closure of task | 1140 | * @param task_cls closure of task |
@@ -1404,7 +1404,7 @@ add_without_sets (struct GNUNET_TIME_Relative delay, int rfd, int wfd, | |||
1404 | * socket operation is ready. It will be run with the priority of | 1404 | * socket operation is ready. It will be run with the priority of |
1405 | * the calling task. | 1405 | * the calling task. |
1406 | * | 1406 | * |
1407 | * @param delay when should this operation time out? Use | 1407 | * @param delay when should this operation time out? Use |
1408 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" | 1408 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" |
1409 | * @param rfd read file-descriptor | 1409 | * @param rfd read file-descriptor |
1410 | * @param task main function of the task | 1410 | * @param task main function of the task |
@@ -1445,7 +1445,7 @@ GNUNET_SCHEDULER_add_read_net (struct GNUNET_TIME_Relative delay, | |||
1445 | * socket operation is ready. It will be run with the priority of | 1445 | * socket operation is ready. It will be run with the priority of |
1446 | * the calling task. | 1446 | * the calling task. |
1447 | * | 1447 | * |
1448 | * @param delay when should this operation time out? Use | 1448 | * @param delay when should this operation time out? Use |
1449 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" | 1449 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" |
1450 | * @param wfd write file-descriptor | 1450 | * @param wfd write file-descriptor |
1451 | * @param task main function of the task | 1451 | * @param task main function of the task |
@@ -1487,7 +1487,7 @@ GNUNET_SCHEDULER_add_write_net (struct GNUNET_TIME_Relative delay, | |||
1487 | * socket operation is ready. It will be run with the priority of | 1487 | * socket operation is ready. It will be run with the priority of |
1488 | * the calling task. | 1488 | * the calling task. |
1489 | * | 1489 | * |
1490 | * @param delay when should this operation time out? Use | 1490 | * @param delay when should this operation time out? Use |
1491 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" | 1491 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" |
1492 | * @param rfd read file-descriptor | 1492 | * @param rfd read file-descriptor |
1493 | * @param task main function of the task | 1493 | * @param task main function of the task |
@@ -1531,7 +1531,7 @@ GNUNET_SCHEDULER_add_read_file (struct GNUNET_TIME_Relative delay, | |||
1531 | * socket operation is ready. It will be run with the priority of | 1531 | * socket operation is ready. It will be run with the priority of |
1532 | * the calling task. | 1532 | * the calling task. |
1533 | * | 1533 | * |
1534 | * @param delay when should this operation time out? Use | 1534 | * @param delay when should this operation time out? Use |
1535 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" | 1535 | * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" |
1536 | * @param wfd write file-descriptor | 1536 | * @param wfd write file-descriptor |
1537 | * @param task main function of the task | 1537 | * @param task main function of the task |