diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-10 19:45:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-10 19:45:42 +0000 |
commit | 02aaa9eeefb8f1c408ccf02cf3a2e7a2a7bed58d (patch) | |
tree | 5521c168af82f8aba1995b87b1ba7fcea7e412f1 /src/include/gnunet_scheduler_lib.h | |
parent | 1351e32fa8ffcd56fc6329f4a68ccc83d0cf0cc5 (diff) | |
download | gnunet-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.h | 12 |
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 | */ | ||
252 | enum GNUNET_SCHEDULER_Reason | ||
253 | GNUNET_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 | * |