aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_hosts.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-08-19 14:13:19 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-08-19 14:13:19 +0000
commit9dd0824b40e7afeaf948a564d544b384db12cadf (patch)
tree4d98c8d27669e8eca6259a9601e32fddfa67e39c /src/testbed/testbed_api_hosts.h
parentd4051630bbc5f521142f302baad60212b75f8b7f (diff)
downloadgnunet-9dd0824b40e7afeaf948a564d544b384db12cadf.tar.gz
gnunet-9dd0824b40e7afeaf948a564d544b384db12cadf.zip
fix 2893: Move adaptive parallelisation mechanism to operation queues
Diffstat (limited to 'src/testbed/testbed_api_hosts.h')
-rw-r--r--src/testbed/testbed_api_hosts.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h
index 6c305c340..a1cbb5b88 100644
--- a/src/testbed/testbed_api_hosts.h
+++ b/src/testbed/testbed_api_hosts.h
@@ -151,61 +151,6 @@ GNUNET_TESTBED_is_host_registered_ (const struct GNUNET_TESTBED_Host *host,
151 151
152 152
153/** 153/**
154 * (re)sets the operation queue for parallel overlay connects
155 *
156 * @param h the host handle
157 * @param npoc the number of parallel overlay connects - the queue size
158 */
159void
160GNUNET_TESTBED_set_num_parallel_overlay_connects_ (struct
161 GNUNET_TESTBED_Host *h,
162 unsigned int npoc);
163
164
165/**
166 * Releases a time slot thus making it available for be used again
167 *
168 * @param h the host handle
169 * @param index the index of the the time slot
170 * @param key the key to prove ownership of the timeslot
171 * @return GNUNET_YES if the time slot is successfully removed; GNUNET_NO if the
172 * time slot cannot be removed - this could be because of the index
173 * greater than existing number of time slots or `key' being different
174 */
175int
176GNUNET_TESTBED_release_time_slot_ (struct GNUNET_TESTBED_Host *h,
177 unsigned int index, void *key);
178
179
180/**
181 * Function to update a time slot
182 *
183 * @param h the host handle
184 * @param index the index of the time slot to update
185 * @param key the key to identify ownership of the slot
186 * @param time the new time
187 * @param failed should this reading be treated as coming from a fail event
188 */
189void
190GNUNET_TESTBED_update_time_slot_ (struct GNUNET_TESTBED_Host *h,
191 unsigned int index, void *key,
192 struct GNUNET_TIME_Relative time, int failed);
193
194
195/**
196 * Returns a timing slot which will be exclusively locked
197 *
198 * @param h the host handle
199 * @param key a pointer which is associated to the returned slot; should not be
200 * NULL. It serves as a key to determine the correct owner of the slot
201 * @return the time slot index in the array of time slots in the controller
202 * handle
203 */
204unsigned int
205GNUNET_TESTBED_get_tslot_ (struct GNUNET_TESTBED_Host *h, void *key);
206
207
208/**
209 * Queues the given operation in the queue for parallel overlay connects of the 154 * Queues the given operation in the queue for parallel overlay connects of the
210 * given host 155 * given host
211 * 156 *