aboutsummaryrefslogtreecommitdiff
path: root/src/setup
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
commit56110d97bc423d8c4a2c8cd66b2bb8486b6ffd13 (patch)
tree7b48bacfa09b34ab988324498e0617732025a512 /src/setup
parent1e2e74c3ce3ff0f02c1d3fe976fd7b2ba3d327d6 (diff)
downloadgnunet-gtk-56110d97bc423d8c4a2c8cd66b2bb8486b6ffd13.tar.gz
gnunet-gtk-56110d97bc423d8c4a2c8cd66b2bb8486b6ffd13.zip
making GNUNET_SCHEDULER_cancel() perform in O(1) instead of O(n) to help or even fully address #3247
Diffstat (limited to 'src/setup')
-rw-r--r--src/setup/gnunet-setup-transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/setup/gnunet-setup-transport.c b/src/setup/gnunet-setup-transport.c
index 9168683d..be7f8c7d 100644
--- a/src/setup/gnunet-setup-transport.c
+++ b/src/setup/gnunet-setup-transport.c
@@ -122,7 +122,7 @@ struct GNUNET_SetupAutoContext
122 /** 122 /**
123 * Task identifier for the timeout. 123 * Task identifier for the timeout.
124 */ 124 */
125 GNUNET_SCHEDULER_TaskIdentifier tsk; 125 struct GNUNET_SCHEDULER_Task * tsk;
126 126
127 /** 127 /**
128 * Where are we in the test? 128 * Where are we in the test?
@@ -175,7 +175,7 @@ result_callback (void *cls,
175 struct GNUNET_SetupAutoContext *ac = cls; 175 struct GNUNET_SetupAutoContext *ac = cls;
176 176
177 GNUNET_SCHEDULER_cancel (ac->tsk); 177 GNUNET_SCHEDULER_cancel (ac->tsk);
178 ac->tsk = GNUNET_SCHEDULER_NO_TASK; 178 ac->tsk = NULL;
179 GNUNET_NAT_test_stop (ac->tst); 179 GNUNET_NAT_test_stop (ac->tst);
180 ac->tst = NULL; 180 ac->tst = NULL;
181 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 181 GNUNET_log (GNUNET_ERROR_TYPE_INFO,