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) |
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; static struct GNUNET_DHT_Handle *dht_handle; -static GNUNET_SCHEDULER_TaskIdentifier shutdown_tid; +static struct GNUNET_SCHEDULER_Task * shutdown_tid; /** @@ -39,7 +39,7 @@ static int result; static void shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { - shutdown_tid = GNUNET_SCHEDULER_NO_TASK; + shutdown_tid = NULL; if (NULL != dht_op) { GNUNET_TESTBED_operation_done (dht_op); /* indirectly calls the dht_da() for closing |