diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-16 11:20:38 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-16 11:20:38 +0000 |
commit | 57dc1a4ec314043cfdbf6e5a0bcf3c4ca103ddec (patch) | |
tree | 33553c2e36c8db66de2df88ed144e5d46bda5b70 /src/testbed/testbed_api_operations.h | |
parent | 27520ef39b732562a6c4ffa8640b44250ad72a4a (diff) | |
download | gnunet-57dc1a4ec314043cfdbf6e5a0bcf3c4ca103ddec.tar.gz gnunet-57dc1a4ec314043cfdbf6e5a0bcf3c4ca103ddec.zip |
dynamically adjustable operation queues
Diffstat (limited to 'src/testbed/testbed_api_operations.h')
-rw-r--r-- | src/testbed/testbed_api_operations.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h index e78ed0fcc..d5a918f0e 100644 --- a/src/testbed/testbed_api_operations.h +++ b/src/testbed/testbed_api_operations.h | |||
@@ -59,6 +59,19 @@ GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue); | |||
59 | 59 | ||
60 | 60 | ||
61 | /** | 61 | /** |
62 | * Function to reset the maximum number of operations in the given queue. If | ||
63 | * max_active is lesser than the number of currently active operations, the | ||
64 | * active operations are not stopped immediately. | ||
65 | * | ||
66 | * @param queue the operation queue which has to be modified | ||
67 | * @param max_active the new maximum number of active operations | ||
68 | */ | ||
69 | void | ||
70 | GNUNET_TESTBED_operation_queue_reset_max_active_ (struct OperationQueue *queue, | ||
71 | unsigned int max_active); | ||
72 | |||
73 | |||
74 | /** | ||
62 | * Add an operation to a queue. An operation can be in multiple queues at | 75 | * Add an operation to a queue. An operation can be in multiple queues at |
63 | * once. Once the operation is inserted into all the queues | 76 | * once. Once the operation is inserted into all the queues |
64 | * GNUNET_TESTBED_operation_begin_wait_() has to be called to actually start | 77 | * GNUNET_TESTBED_operation_begin_wait_() has to be called to actually start |