aboutsummaryrefslogtreecommitdiff
path: root/doc/testbed_test.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-24 01:10:47 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-24 01:10:47 +0000
commitf1f603c7d0b3f03dca46a4f313472288eb080eb1 (patch)
tree3a29966b02dfb83e0a8a8d5c42b3116380209fb0 /doc/testbed_test.c
parent53cd5b8eda2fa8db86b0907a62a39598981d008a (diff)
downloadgnunet-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/testbed_test.c')
-rw-r--r--doc/testbed_test.c4
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
12static struct GNUNET_DHT_Handle *dht_handle; 12static struct GNUNET_DHT_Handle *dht_handle;
13 13
14static GNUNET_SCHEDULER_TaskIdentifier shutdown_tid; 14static struct GNUNET_SCHEDULER_Task * shutdown_tid;
15 15
16 16
17/** 17/**
@@ -39,7 +39,7 @@ static int result;
39static void 39static void
40shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 40shutdown_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