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/testbed_api_hosts.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/testbed_api_hosts.c')
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index ed3379d88..292dafadf 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -1239,7 +1239,7 @@ struct GNUNET_TESTBED_HostHabitableCheckHandle | |||
1239 | /** | 1239 | /** |
1240 | * Task id for the habitability check task | 1240 | * Task id for the habitability check task |
1241 | */ | 1241 | */ |
1242 | GNUNET_SCHEDULER_TaskIdentifier habitability_check_task; | 1242 | struct GNUNET_SCHEDULER_Task * habitability_check_task; |
1243 | 1243 | ||
1244 | /** | 1244 | /** |
1245 | * How long we wait before checking the process status. Should grow | 1245 | * How long we wait before checking the process status. Should grow |
@@ -1267,7 +1267,7 @@ habitability_check (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1267 | enum GNUNET_OS_ProcessStatusType type; | 1267 | enum GNUNET_OS_ProcessStatusType type; |
1268 | int ret; | 1268 | int ret; |
1269 | 1269 | ||
1270 | h->habitability_check_task = GNUNET_SCHEDULER_NO_TASK; | 1270 | h->habitability_check_task = NULL; |
1271 | ret = GNUNET_OS_process_status (h->auxp, &type, &code); | 1271 | ret = GNUNET_OS_process_status (h->auxp, &type, &code); |
1272 | if (GNUNET_SYSERR == ret) | 1272 | if (GNUNET_SYSERR == ret) |
1273 | { | 1273 | { |