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/testbed/gnunet-daemon-latency-logger.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/testbed/gnunet-daemon-latency-logger.c')
-rw-r--r-- | src/testbed/gnunet-daemon-latency-logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/gnunet-daemon-latency-logger.c b/src/testbed/gnunet-daemon-latency-logger.c index fb9364c28..945cf42f4 100644 --- a/src/testbed/gnunet-daemon-latency-logger.c +++ b/src/testbed/gnunet-daemon-latency-logger.c | |||
@@ -98,7 +98,7 @@ struct sqlite3_stmt *stmt_insert; | |||
98 | /** | 98 | /** |
99 | * Shutdown task identifier | 99 | * Shutdown task identifier |
100 | */ | 100 | */ |
101 | GNUNET_SCHEDULER_TaskIdentifier shutdown_task; | 101 | struct GNUNET_SCHEDULER_Task * shutdown_task; |
102 | 102 | ||
103 | 103 | ||
104 | /** | 104 | /** |
@@ -136,7 +136,7 @@ free_iterator (void *cls, | |||
136 | static void | 136 | static void |
137 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 137 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
138 | { | 138 | { |
139 | shutdown_task = GNUNET_SCHEDULER_NO_TASK; | 139 | shutdown_task = NULL; |
140 | GNUNET_ATS_performance_done (ats); | 140 | GNUNET_ATS_performance_done (ats); |
141 | ats = NULL; | 141 | ats = NULL; |
142 | if (NULL != stmt_insert) | 142 | if (NULL != stmt_insert) |