aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_operations.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-04-09 09:40:00 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-04-09 09:40:00 +0000
commit8c29ba8ee17d8c8d98548b8b64cd6a6605b7b295 (patch)
treee1f46cc9add2b4795b2d4afee34021a80507302c /src/testbed/testbed_api_operations.h
parent02373929074ae77e5cfc895963da2aec5d6abb04 (diff)
downloadgnunet-8c29ba8ee17d8c8d98548b8b64cd6a6605b7b295.tar.gz
gnunet-8c29ba8ee17d8c8d98548b8b64cd6a6605b7b295.zip
- no starving
Diffstat (limited to 'src/testbed/testbed_api_operations.h')
-rw-r--r--src/testbed/testbed_api_operations.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h
index 8ab6944f2..1950cd7d1 100644
--- a/src/testbed/testbed_api_operations.h
+++ b/src/testbed/testbed_api_operations.h
@@ -89,14 +89,14 @@ GNUNET_TESTBED_operation_queue_reset_max_active_ (struct OperationQueue *queue,
89 * waiting for the operation to become active. 89 * waiting for the operation to become active.
90 * 90 *
91 * @param queue queue to add the operation to 91 * @param queue queue to add the operation to
92 * @param operation operation to add to the queue 92 * @param op operation to add to the queue
93 * @param nres the number of units of the resources of queue needed by the 93 * @param nres the number of units of the resources of queue needed by the
94 * operation. Should be greater than 0. 94 * operation. Should be greater than 0.
95 */ 95 */
96void 96void
97GNUNET_TESTBED_operation_queue_insert2_ (struct OperationQueue *queue, 97GNUNET_TESTBED_operation_queue_insert2_ (struct OperationQueue *queue,
98 struct GNUNET_TESTBED_Operation 98 struct GNUNET_TESTBED_Operation *op,
99 *operation, unsigned int nres); 99 unsigned int nres);
100 100
101 101
102/** 102/**
@@ -106,12 +106,11 @@ GNUNET_TESTBED_operation_queue_insert2_ (struct OperationQueue *queue,
106 * waiting for the operation to become active. 106 * waiting for the operation to become active.
107 * 107 *
108 * @param queue queue to add the operation to 108 * @param queue queue to add the operation to
109 * @param operation operation to add to the queue 109 * @param op operation to add to the queue
110 */ 110 */
111void 111void
112GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, 112GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue,
113 struct GNUNET_TESTBED_Operation 113 struct GNUNET_TESTBED_Operation *op);
114 *operation);
115 114
116 115
117/** 116/**
@@ -121,11 +120,10 @@ GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue,
121 * insertions to be made without having the first one instantly trigger the 120 * insertions to be made without having the first one instantly trigger the
122 * operation if the first queue has sufficient resources). 121 * operation if the first queue has sufficient resources).
123 * 122 *
124 * @param operation the operation to marks as waiting 123 * @param op the operation to marks as waiting
125 */ 124 */
126void 125void
127GNUNET_TESTBED_operation_begin_wait_ (struct GNUNET_TESTBED_Operation 126GNUNET_TESTBED_operation_begin_wait_ (struct GNUNET_TESTBED_Operation *op);
128 *operation);
129 127
130 128
131/** 129/**
@@ -135,12 +133,11 @@ GNUNET_TESTBED_operation_begin_wait_ (struct GNUNET_TESTBED_Operation
135 * thus scheduling the operation is no longer required. 133 * thus scheduling the operation is no longer required.
136 * 134 *
137 * @param queue queue to add the operation to 135 * @param queue queue to add the operation to
138 * @param operation operation to add to the queue 136 * @param op operation to add to the queue
139 */ 137 */
140void 138void
141GNUNET_TESTBED_operation_queue_remove_ (struct OperationQueue *queue, 139GNUNET_TESTBED_operation_queue_remove_ (struct OperationQueue *queue,
142 struct GNUNET_TESTBED_Operation 140 struct GNUNET_TESTBED_Operation *op);
143 *operation);
144 141
145 142
146 143
@@ -187,10 +184,10 @@ GNUNET_TESTBED_operation_create_ (void *cls, OperationStart start,
187 * An operation is 'done' (was cancelled or finished); remove 184 * An operation is 'done' (was cancelled or finished); remove
188 * it from the queues and release associated resources. 185 * it from the queues and release associated resources.
189 * 186 *
190 * @param operation operation that finished 187 * @param op operation that finished
191 */ 188 */
192void 189void
193GNUNET_TESTBED_operation_release_ (struct GNUNET_TESTBED_Operation *operation); 190GNUNET_TESTBED_operation_release_ (struct GNUNET_TESTBED_Operation *op);
194 191
195 192
196#endif 193#endif