aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_scheduler_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-10 19:45:42 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-10 19:45:42 +0000
commit02aaa9eeefb8f1c408ccf02cf3a2e7a2a7bed58d (patch)
tree5521c168af82f8aba1995b87b1ba7fcea7e412f1 /src/include/gnunet_scheduler_lib.h
parent1351e32fa8ffcd56fc6329f4a68ccc83d0cf0cc5 (diff)
downloadgnunet-02aaa9eeefb8f1c408ccf02cf3a2e7a2a7bed58d.tar.gz
gnunet-02aaa9eeefb8f1c408ccf02cf3a2e7a2a7bed58d.zip
allow any function in a task to easily get the reason code
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r--src/include/gnunet_scheduler_lib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index 760a674d5..16fd2e807 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -242,6 +242,18 @@ unsigned int GNUNET_SCHEDULER_get_load (struct GNUNET_SCHEDULER_Handle *sched,
242 242
243 243
244/** 244/**
245 * Obtain the reason code for why the current task was
246 * started. Will return the same value as
247 * the GNUNET_SCHEDULER_TaskContext's reason field.
248 *
249 * @param sched scheduler to query
250 * @return reason(s) why the current task is run
251 */
252enum GNUNET_SCHEDULER_Reason
253GNUNET_SCHEDULER_get_reason (struct GNUNET_SCHEDULER_Handle *sched);
254
255
256/**
245 * Cancel the task with the specified identifier. 257 * Cancel the task with the specified identifier.
246 * The task must not yet have run. 258 * The task must not yet have run.
247 * 259 *