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 /src/dv/test_transport_dv.c | |
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 'src/dv/test_transport_dv.c')
-rw-r--r-- | src/dv/test_transport_dv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dv/test_transport_dv.c b/src/dv/test_transport_dv.c index 6a2cbde94..eec7d3171 100644 --- a/src/dv/test_transport_dv.c +++ b/src/dv/test_transport_dv.c | |||
@@ -32,14 +32,14 @@ static int ok; | |||
32 | 32 | ||
33 | struct GNUNET_TESTBED_Operation *topology_op; | 33 | struct GNUNET_TESTBED_Operation *topology_op; |
34 | 34 | ||
35 | static GNUNET_SCHEDULER_TaskIdentifier shutdown_task; | 35 | static struct GNUNET_SCHEDULER_Task * shutdown_task; |
36 | 36 | ||
37 | 37 | ||
38 | static void | 38 | static void |
39 | do_shutdown (void *cls, | 39 | do_shutdown (void *cls, |
40 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 40 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
41 | { | 41 | { |
42 | shutdown_task = GNUNET_SCHEDULER_NO_TASK; | 42 | shutdown_task = NULL; |
43 | if (NULL != topology_op) | 43 | if (NULL != topology_op) |
44 | { | 44 | { |
45 | GNUNET_TESTBED_operation_done (topology_op); | 45 | GNUNET_TESTBED_operation_done (topology_op); |