aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_scheduler_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-27 21:10:58 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-27 21:10:58 +0000
commit0e95912060c3c460353fc63c0bcec84f699c5bd8 (patch)
tree497f64d7d8a159e317c8ddc117ec5435aeac83ed /src/include/gnunet_scheduler_lib.h
parent2845137368226d8b35c8d4e6d455810a61b87764 (diff)
downloadgnunet-0e95912060c3c460353fc63c0bcec84f699c5bd8.tar.gz
gnunet-0e95912060c3c460353fc63c0bcec84f699c5bd8.zip
adding GNUNET_SCHEDULER_add_read_net_with_priority
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r--src/include/gnunet_scheduler_lib.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index c0b33a400..864d2606a 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -238,7 +238,7 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls);
238 * scheduled AFTER this call may still be delayed arbitrarily. 238 * scheduled AFTER this call may still be delayed arbitrarily.
239 */ 239 */
240void 240void
241GNUNET_SCHEDULER_shutdown (); 241GNUNET_SCHEDULER_shutdown (void);
242 242
243 243
244/** 244/**
@@ -412,6 +412,29 @@ GNUNET_SCHEDULER_add_read_net (struct GNUNET_TIME_Relative delay,
412 412
413 413
414/** 414/**
415 * Schedule a new task to be run with a specified priority and to be
416 * run after the specified delay or when the specified file descriptor
417 * is ready for reading. The delay can be used as a timeout on the
418 * socket being ready. The task will be scheduled for execution once
419 * either the delay has expired or the socket operation is ready. It
420 * will be run with the DEFAULT priority.
421 *
422 * * @param delay when should this operation time out? Use
423 * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown"
424 * @param rfd read file-descriptor
425 * @param task main function of the task
426 * @param task_cls closure of task
427 * @return unique task identifier for the job
428 * only valid until "task" is started!
429 */
430GNUNET_SCHEDULER_TaskIdentifier
431GNUNET_SCHEDULER_add_read_net_with_priority (struct GNUNET_TIME_Relative delay,
432 enum GNUNET_SCHEDULER_Priority priority,
433 struct GNUNET_NETWORK_Handle *rfd,
434 GNUNET_SCHEDULER_Task task, void *task_cls);
435
436
437/**
415 * Schedule a new task to be run with a specified delay or when the 438 * Schedule a new task to be run with a specified delay or when the
416 * specified file descriptor is ready for writing. The delay can be 439 * specified file descriptor is ready for writing. The delay can be
417 * used as a timeout on the socket being ready. The task will be 440 * used as a timeout on the socket being ready. The task will be