diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:10:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:10:47 +0000 |
commit | f1f603c7d0b3f03dca46a4f313472288eb080eb1 (patch) | |
tree | 3a29966b02dfb83e0a8a8d5c42b3116380209fb0 /doc | |
parent | 53cd5b8eda2fa8db86b0907a62a39598981d008a (diff) | |
download | gnunet-f1f603c7d0b3f03dca46a4f313472288eb080eb1.tar.gz gnunet-f1f603c7d0b3f03dca46a4f313472288eb080eb1.zip |
making GNUNET_SCHEDULER_cancel() perform in O(1) instead of O(n) to help or even fully address #3247
Diffstat (limited to 'doc')
-rw-r--r-- | doc/testbed_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/testbed_test.c b/doc/testbed_test.c index bdda338b0..e48bb28d8 100644 --- a/doc/testbed_test.c +++ b/doc/testbed_test.c | |||
@@ -11,7 +11,7 @@ static struct GNUNET_TESTBED_Operation *dht_op; | |||
11 | 11 | ||
12 | static struct GNUNET_DHT_Handle *dht_handle; | 12 | static struct GNUNET_DHT_Handle *dht_handle; |
13 | 13 | ||
14 | static GNUNET_SCHEDULER_TaskIdentifier shutdown_tid; | 14 | static struct GNUNET_SCHEDULER_Task * shutdown_tid; |
15 | 15 | ||
16 | 16 | ||
17 | /** | 17 | /** |
@@ -39,7 +39,7 @@ static int result; | |||
39 | static void | 39 | static void |
40 | shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 40 | shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
41 | { | 41 | { |
42 | shutdown_tid = GNUNET_SCHEDULER_NO_TASK; | 42 | shutdown_tid = NULL; |
43 | if (NULL != dht_op) | 43 | if (NULL != dht_op) |
44 | { | 44 | { |
45 | GNUNET_TESTBED_operation_done (dht_op); /* indirectly calls the dht_da() for closing | 45 | GNUNET_TESTBED_operation_done (dht_op); /* indirectly calls the dht_da() for closing |