aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_scheduler_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-02 14:35:29 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-02 14:35:29 +0000
commit8b1ea3124c95c26fb1a7c8a106c7aaf7b817ccc0 (patch)
treebee84128152805b0460ee937a28bd78fecd949d0 /src/include/gnunet_scheduler_lib.h
parent21490594534e5ab37d9d0030d5ec5687c1b8c69a (diff)
downloadgnunet-8b1ea3124c95c26fb1a7c8a106c7aaf7b817ccc0.tar.gz
gnunet-8b1ea3124c95c26fb1a7c8a106c7aaf7b817ccc0.zip
fixing parent_control_handler hack, adding lifeness attribute to tasks
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r--src/include/gnunet_scheduler_lib.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index 774f2f4bc..ce3261f0a 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 (C) 2009 Christian Grothoff (and other contributing authors) 3 (C) 2009, 2011 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -323,6 +323,26 @@ GNUNET_SCHEDULER_add_now (GNUNET_SCHEDULER_Task task,
323 323
324 324
325/** 325/**
326 * Schedule a new task to be run as soon as possible with the
327 * (transitive) ignore-shutdown flag either explicitly set or
328 * explicitly enabled. This task (and all tasks created from it,
329 * other than by another call to this function) will either count or
330 * not count for the 'lifeness' of the process. This API is only
331 * useful in a few special cases.
332 *
333 * @param lifeness GNUNET_YES if the task counts for lifeness, GNUNET_NO if not.
334 * @param task main function of the task
335 * @param task_cls closure of task
336 * @return unique task identifier for the job
337 * only valid until "task" is started!
338 */
339GNUNET_SCHEDULER_TaskIdentifier
340GNUNET_SCHEDULER_add_now_with_lifeness (int lifeness,
341 GNUNET_SCHEDULER_Task task,
342 void *task_cls);
343
344
345/**
326 * Schedule a new task to be run with a specified delay. The task 346 * Schedule a new task to be run with a specified delay. The task
327 * will be scheduled for execution once the delay has expired. It 347 * will be scheduled for execution once the delay has expired. It
328 * will be run with the priority of the calling task. 348 * will be run with the priority of the calling task.