aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_scheduler_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-19 12:07:05 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-19 12:07:05 +0000
commitb272a833ee57cad630ecbcce1aab366777042dd9 (patch)
tree9a6057f81afe36db736b4911a85c0b94538c1f53 /src/include/gnunet_scheduler_lib.h
parent50c4e060fc721dfe2af9115639a4d47e88e04f00 (diff)
downloadgnunet-b272a833ee57cad630ecbcce1aab366777042dd9.tar.gz
gnunet-b272a833ee57cad630ecbcce1aab366777042dd9.zip
-fixing #2274 -- eliminating GNUNET_SCHEDULER_add_after
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r--src/include/gnunet_scheduler_lib.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index e16ccc511..c0b33a400 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -309,26 +309,6 @@ GNUNET_SCHEDULER_add_continuation_with_priority (GNUNET_SCHEDULER_Task task, voi
309 309
310 310
311/** 311/**
312 * Schedule a new task to be run after the specified prerequisite task
313 * has completed. It will be run with DEFAULT priority.
314 *
315 * * @param prerequisite_task run this task after the task with the given
316 * task identifier completes (and any of our other
317 * conditions, such as delay, read or write-readiness
318 * are satisfied). Use GNUNET_SCHEDULER_NO_TASK to not have any dependency
319 * on completion of other tasks (this will cause the task to run as
320 * soon as possible).
321 * @param task main function of the task
322 * @param task_cls closure of task
323 * @return unique task identifier for the job
324 * only valid until "task" is started!
325 */
326GNUNET_SCHEDULER_TaskIdentifier
327GNUNET_SCHEDULER_add_after (GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
328 GNUNET_SCHEDULER_Task task, void *task_cls);
329
330
331/**
332 * Schedule a new task to be run with a specified priority. 312 * Schedule a new task to be run with a specified priority.
333 * 313 *
334 * * @param prio how important is the new task? 314 * * @param prio how important is the new task?
@@ -511,12 +491,7 @@ GNUNET_SCHEDULER_add_write_file (struct GNUNET_TIME_Relative delay,
511 * || shutdown-active) 491 * || shutdown-active)
512 * </code> 492 * </code>
513 * 493 *
514 * * @param prio how important is this task? 494 * @param prio how important is this task?
515 * @param prerequisite_task run this task after the task with the given
516 * task identifier completes (and any of our other
517 * conditions, such as delay, read or write-readiness
518 * are satisfied). Use GNUNET_SCHEDULER_NO_TASK to not have any dependency
519 * on completion of other tasks.
520 * @param delay how long should we wait? Use GNUNET_TIME_UNIT_FOREVER_REL for "forever", 495 * @param delay how long should we wait? Use GNUNET_TIME_UNIT_FOREVER_REL for "forever",
521 * which means that the task will only be run after we receive SIGTERM 496 * which means that the task will only be run after we receive SIGTERM
522 * @param rs set of file descriptors we want to read (can be NULL) 497 * @param rs set of file descriptors we want to read (can be NULL)
@@ -527,8 +502,7 @@ GNUNET_SCHEDULER_add_write_file (struct GNUNET_TIME_Relative delay,
527 * only valid until "task" is started! 502 * only valid until "task" is started!
528 */ 503 */
529GNUNET_SCHEDULER_TaskIdentifier 504GNUNET_SCHEDULER_TaskIdentifier
530GNUNET_SCHEDULER_add_select (enum GNUNET_SCHEDULER_Priority prio, 505GNUNET_SCHEDULER_add_select (enum GNUNET_SCHEDULER_Priority prio,
531 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
532 struct GNUNET_TIME_Relative delay, 506 struct GNUNET_TIME_Relative delay,
533 const struct GNUNET_NETWORK_FDSet *rs, 507 const struct GNUNET_NETWORK_FDSet *rs,
534 const struct GNUNET_NETWORK_FDSet *ws, 508 const struct GNUNET_NETWORK_FDSet *ws,