diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-14 12:33:43 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-14 12:33:43 +0000 |
commit | 277f2ffeed022c1de410776902858d1edeaee910 (patch) | |
tree | 8ca3ec07dbf8dd783947e3f04ed25e270ad22457 /src/testbed/testbed_api.h | |
parent | a6492d071ad383beff300d825740fd9bfe41c34e (diff) | |
download | gnunet-277f2ffeed022c1de410776902858d1edeaee910.tar.gz gnunet-277f2ffeed022c1de410776902858d1edeaee910.zip |
move parallel overlay connect operation queue from controller handle to host handle
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r-- | src/testbed/testbed_api.h | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h index d6c04a6a2..26b0d5843 100644 --- a/src/testbed/testbed_api.h +++ b/src/testbed/testbed_api.h | |||
@@ -178,34 +178,6 @@ struct OperationContext | |||
178 | 178 | ||
179 | 179 | ||
180 | /** | 180 | /** |
181 | * Opaque handle for SD calculations | ||
182 | */ | ||
183 | struct SDHandle; | ||
184 | |||
185 | |||
186 | /** | ||
187 | * A slot to record time taken by an overlay connect operation | ||
188 | */ | ||
189 | struct TimeSlot | ||
190 | { | ||
191 | /** | ||
192 | * A key to identify this timeslot | ||
193 | */ | ||
194 | void *key; | ||
195 | |||
196 | /** | ||
197 | * Time | ||
198 | */ | ||
199 | struct GNUNET_TIME_Relative time; | ||
200 | |||
201 | /** | ||
202 | * Number of timing values accumulated | ||
203 | */ | ||
204 | unsigned int nvals; | ||
205 | }; | ||
206 | |||
207 | |||
208 | /** | ||
209 | * Handle to interact with a GNUnet testbed controller. Each | 181 | * Handle to interact with a GNUnet testbed controller. Each |
210 | * controller has at least one master handle which is created when the | 182 | * controller has at least one master handle which is created when the |
211 | * controller is created; this master handle interacts with the | 183 | * controller is created; this master handle interacts with the |
@@ -298,23 +270,6 @@ struct GNUNET_TESTBED_Controller | |||
298 | struct OperationQueue *opq_parallel_topology_config_operations; | 270 | struct OperationQueue *opq_parallel_topology_config_operations; |
299 | 271 | ||
300 | /** | 272 | /** |
301 | * Operation queue for simultaneous overlay connect operations | ||
302 | */ | ||
303 | struct OperationQueue *opq_parallel_overlay_connect_operations; | ||
304 | |||
305 | /** | ||
306 | * An array of timing slots; size should be equal to the current number of parallel | ||
307 | * overlay connects | ||
308 | */ | ||
309 | struct TimeSlot *tslots; | ||
310 | |||
311 | /** | ||
312 | * Handle for SD calculations amount parallel overlay connect operation finish | ||
313 | * times | ||
314 | */ | ||
315 | struct SDHandle *poc_sd; | ||
316 | |||
317 | /** | ||
318 | * The controller event mask | 273 | * The controller event mask |
319 | */ | 274 | */ |
320 | uint64_t event_mask; | 275 | uint64_t event_mask; |
@@ -330,16 +285,6 @@ struct GNUNET_TESTBED_Controller | |||
330 | int aux_host; | 285 | int aux_host; |
331 | 286 | ||
332 | /** | 287 | /** |
333 | * The number of parallel overlay connects we do currently | ||
334 | */ | ||
335 | unsigned int num_parallel_connects; | ||
336 | |||
337 | /** | ||
338 | * Counter to indicate when all the available time slots are filled | ||
339 | */ | ||
340 | unsigned int tslots_filled; | ||
341 | |||
342 | /** | ||
343 | * The operation id counter. use current value and increment | 288 | * The operation id counter. use current value and increment |
344 | */ | 289 | */ |
345 | uint32_t operation_counter; | 290 | uint32_t operation_counter; |
@@ -541,49 +486,6 @@ GNUNET_TESTBED_controller_link_ (void *op_cls, | |||
541 | *slave_cfg, int is_subordinate); | 486 | *slave_cfg, int is_subordinate); |
542 | 487 | ||
543 | 488 | ||
544 | /** | ||
545 | * Returns a timing slot which will be exclusively locked | ||
546 | * | ||
547 | * @param c the controller handle | ||
548 | * @param key a pointer which is associated to the returned slot; should not be | ||
549 | * NULL. It serves as a key to determine the correct owner of the slot | ||
550 | * @return the time slot index in the array of time slots in the controller | ||
551 | * handle | ||
552 | */ | ||
553 | unsigned int | ||
554 | GNUNET_TESTBED_get_tslot_ (struct GNUNET_TESTBED_Controller *c, void *key); | ||
555 | |||
556 | |||
557 | /** | ||
558 | * Function to update a time slot | ||
559 | * | ||
560 | * @param c the controller handle | ||
561 | * @param index the index of the time slot to update | ||
562 | * @param key the key to identify ownership of the slot | ||
563 | * @param time the new time | ||
564 | * @param failed should this reading be treated as coming from a fail event | ||
565 | */ | ||
566 | void | ||
567 | GNUNET_TESTBED_update_time_slot_ (struct GNUNET_TESTBED_Controller *c, | ||
568 | unsigned int index, void *key, | ||
569 | struct GNUNET_TIME_Relative time, int failed); | ||
570 | |||
571 | |||
572 | /** | ||
573 | * Releases a time slot thus making it available for be used again | ||
574 | * | ||
575 | * @param c the controller handle | ||
576 | * @param index the index of the the time slot | ||
577 | * @param key the key to prove ownership of the timeslot | ||
578 | * @return GNUNET_YES if the time slot is successfully removed; GNUNET_NO if the | ||
579 | * time slot cannot be removed - this could be because of the index | ||
580 | * greater than existing number of time slots or `key' being different | ||
581 | */ | ||
582 | int | ||
583 | GNUNET_TESTBED_release_time_slot_ (struct GNUNET_TESTBED_Controller *c, | ||
584 | unsigned int index, void *key); | ||
585 | |||
586 | |||
587 | 489 | ||
588 | 490 | ||
589 | #endif | 491 | #endif |