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/dht/test_dht_monitor.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/dht/test_dht_monitor.c')
-rw-r--r-- | src/dht/test_dht_monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/test_dht_monitor.c b/src/dht/test_dht_monitor.c index 98791d28f..6fc4498d1 100644 --- a/src/dht/test_dht_monitor.c +++ b/src/dht/test_dht_monitor.c | |||
@@ -90,12 +90,12 @@ static unsigned int NUM_PEERS = 3; | |||
90 | /** | 90 | /** |
91 | * Task called to disconnect peers. | 91 | * Task called to disconnect peers. |
92 | */ | 92 | */ |
93 | static GNUNET_SCHEDULER_TaskIdentifier timeout_task; | 93 | static struct GNUNET_SCHEDULER_Task * timeout_task; |
94 | 94 | ||
95 | /** | 95 | /** |
96 | * Task to do DHT_puts | 96 | * Task to do DHT_puts |
97 | */ | 97 | */ |
98 | static GNUNET_SCHEDULER_TaskIdentifier put_task; | 98 | static struct GNUNET_SCHEDULER_Task * put_task; |
99 | 99 | ||
100 | static struct GNUNET_DHT_MonitorHandle **monitors; | 100 | static struct GNUNET_DHT_MonitorHandle **monitors; |
101 | 101 | ||