diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-24 12:24:42 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-24 12:24:42 +0000 |
commit | 978b2684641b79bb7b7e4a1378d9f0f6d0f1a443 (patch) | |
tree | bb9558cd98c1b1a6737c73b1164a904e3e39f655 /src/testbed/testbed_api_operations.h | |
parent | 50ae0b32aca06a0d2b46b070d9a7fde5e227a400 (diff) | |
download | gnunet-978b2684641b79bb7b7e4a1378d9f0f6d0f1a443.tar.gz gnunet-978b2684641b79bb7b7e4a1378d9f0f6d0f1a443.zip |
operations now can explicitly register how many resources they require
Diffstat (limited to 'src/testbed/testbed_api_operations.h')
-rw-r--r-- | src/testbed/testbed_api_operations.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h index d5a918f0e..2f0ef19b6 100644 --- a/src/testbed/testbed_api_operations.h +++ b/src/testbed/testbed_api_operations.h | |||
@@ -79,6 +79,24 @@ GNUNET_TESTBED_operation_queue_reset_max_active_ (struct OperationQueue *queue, | |||
79 | * | 79 | * |
80 | * @param queue queue to add the operation to | 80 | * @param queue queue to add the operation to |
81 | * @param operation operation to add to the queue | 81 | * @param operation operation to add to the queue |
82 | * @param nres the number of units of the resources of queue needed by the | ||
83 | * operation. Should be greater than 0. | ||
84 | */ | ||
85 | void | ||
86 | GNUNET_TESTBED_operation_queue_insert2_ (struct OperationQueue *queue, | ||
87 | struct GNUNET_TESTBED_Operation | ||
88 | *operation, | ||
89 | unsigned int nres); | ||
90 | |||
91 | |||
92 | /** | ||
93 | * Add an operation to a queue. An operation can be in multiple queues at | ||
94 | * once. Once the operation is inserted into all the queues | ||
95 | * GNUNET_TESTBED_operation_begin_wait_() has to be called to actually start | ||
96 | * waiting for the operation to become active. | ||
97 | * | ||
98 | * @param queue queue to add the operation to | ||
99 | * @param operation operation to add to the queue | ||
82 | */ | 100 | */ |
83 | void | 101 | void |
84 | GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, | 102 | GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, |