aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_operations.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-03-13 10:51:45 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-03-13 10:51:45 +0000
commit0043aada3f5172d461f89eecc9138b6a1754ca14 (patch)
tree6970bdc8d0acf430db3b6dee674149a2aeb9273a /src/testbed/testbed_api_operations.c
parente27e2a35da519f85d7597890557f83a4d432e414 (diff)
downloadgnunet-0043aada3f5172d461f89eecc9138b6a1754ca14.tar.gz
gnunet-0043aada3f5172d461f89eecc9138b6a1754ca14.zip
Implement GNUNET_TESTBED_get_statistics() - resolves #2662
Test case for testing GNUNET_TESTBED_get_statistics() Fix waiting for SHUTDOWN_PEERS reply when controller crashes
Diffstat (limited to 'src/testbed/testbed_api_operations.c')
-rw-r--r--src/testbed/testbed_api_operations.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_operations.c b/src/testbed/testbed_api_operations.c
index 3e7eb91bd..d213d3334 100644
--- a/src/testbed/testbed_api_operations.c
+++ b/src/testbed/testbed_api_operations.c
@@ -280,6 +280,23 @@ GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue)
280 280
281 281
282/** 282/**
283 * Destroys the operation queue if it is empty. If not empty return GNUNET_NO.
284 *
285 * @param queue the queue to destroy if empty
286 * @return GNUNET_YES if the queue is destroyed. GNUNET_NO if not (because it
287 * is not empty)
288 */
289int
290GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *q)
291{
292 if (NULL != q->head)
293 return GNUNET_NO;
294 GNUNET_TESTBED_operation_queue_destroy_ (q);
295 return GNUNET_YES;
296}
297
298
299/**
283 * Function to reset the maximum number of operations in the given queue. If 300 * Function to reset the maximum number of operations in the given queue. If
284 * max_active is lesser than the number of currently active operations, the 301 * max_active is lesser than the number of currently active operations, the
285 * active operations are not stopped immediately. 302 * active operations are not stopped immediately.