aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-02-09 22:43:36 +0000
committerChristian Grothoff <christian@grothoff.org>2010-02-09 22:43:36 +0000
commit05e0ca51673774842b7156cfa6bbbcbb591fcdcb (patch)
tree7e67c7704e96937fe620ef54b6a385b86ef447bc /src/include
parentf742e2048502ea164ea399ff9da727393ebcef8c (diff)
downloadgnunet-05e0ca51673774842b7156cfa6bbbcbb591fcdcb.tar.gz
gnunet-05e0ca51673774842b7156cfa6bbbcbb591fcdcb.zip
make sure we run ALL shutdown tasks before resuming execution of new 'normal' tasks
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_scheduler_lib.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index 3205729a3..79739ef16 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -142,10 +142,20 @@ enum GNUNET_SCHEDULER_Priority
142 GNUNET_SCHEDULER_PRIORITY_URGENT = 6, 142 GNUNET_SCHEDULER_PRIORITY_URGENT = 6,
143 143
144 /** 144 /**
145 * This is an internal priority level that is only used for tasks
146 * that are being triggered due to shutdown (they have automatically
147 * highest priority). User code must not use this priority level
148 * directly. Tasks run with this priority level that internally
149 * schedule other tasks will see their original priority level
150 * be inherited (unless otherwise specified).
151 */
152 GNUNET_SCHEDULER_PRIORITY_SHUTDOWN = 7,
153
154 /**
145 * Number of priorities (must be the last priority). 155 * Number of priorities (must be the last priority).
146 * This priority must not be used by clients. 156 * This priority must not be used by clients.
147 */ 157 */
148 GNUNET_SCHEDULER_PRIORITY_COUNT = 7 158 GNUNET_SCHEDULER_PRIORITY_COUNT = 8
149}; 159};
150 160
151#include "gnunet_time_lib.h" 161#include "gnunet_time_lib.h"