diff options
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 5b90d7e4f..7ef55cd86 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -1152,11 +1152,17 @@ GNUNET_SCHEDULER_add_delayed (struct GNUNET_TIME_Relative delay, | |||
1152 | 1152 | ||
1153 | 1153 | ||
1154 | /** | 1154 | /** |
1155 | * Schedule a new task to be run as soon as possible. The task | 1155 | * Schedule a new task to be run as soon as possible. Note that this |
1156 | * will be run with the DEFAULT priority. | 1156 | * does not guarantee that this will be the next task that is being |
1157 | * run, as other tasks with higher priority (or that are already ready | ||
1158 | * to run) might get to run first. Just as with delays, clients must | ||
1159 | * not rely on any particular order of execution between tasks | ||
1160 | * scheduled concurrently. | ||
1161 | * | ||
1162 | * The task will be run with the DEFAULT priority. | ||
1157 | * | 1163 | * |
1158 | * @param task main function of the task | 1164 | * @param task main function of the task |
1159 | * @param task_cls closure of task | 1165 | * @param task_cls closure of @a task |
1160 | * @return unique task identifier for the job | 1166 | * @return unique task identifier for the job |
1161 | * only valid until "task" is started! | 1167 | * only valid until "task" is started! |
1162 | */ | 1168 | */ |