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/fs/gnunet-fs-profiler.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/fs/gnunet-fs-profiler.c')
-rw-r--r-- | src/fs/gnunet-fs-profiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-profiler.c b/src/fs/gnunet-fs-profiler.c index 56a3084cc..ba081f7cf 100644 --- a/src/fs/gnunet-fs-profiler.c +++ b/src/fs/gnunet-fs-profiler.c | |||
@@ -50,7 +50,7 @@ static struct GNUNET_TIME_Relative timeout; | |||
50 | /** | 50 | /** |
51 | * Handle to the task run during termination. | 51 | * Handle to the task run during termination. |
52 | */ | 52 | */ |
53 | static GNUNET_SCHEDULER_TaskIdentifier terminate_taskid; | 53 | static struct GNUNET_SCHEDULER_Task * terminate_taskid; |
54 | 54 | ||
55 | 55 | ||
56 | /** | 56 | /** |
@@ -115,7 +115,7 @@ static void | |||
115 | terminate_task (void *cls, | 115 | terminate_task (void *cls, |
116 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 116 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
117 | { | 117 | { |
118 | terminate_taskid = GNUNET_SCHEDULER_NO_TASK; | 118 | terminate_taskid = NULL; |
119 | GNUNET_TESTBED_get_statistics (0, NULL, | 119 | GNUNET_TESTBED_get_statistics (0, NULL, |
120 | NULL, NULL, | 120 | NULL, NULL, |
121 | &process_stats, | 121 | &process_stats, |