aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_connectionpool.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/testbed/gnunet-service-testbed_connectionpool.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/testbed/gnunet-service-testbed_connectionpool.c')
-rw-r--r--src/testbed/gnunet-service-testbed_connectionpool.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/testbed/gnunet-service-testbed_connectionpool.c b/src/testbed/gnunet-service-testbed_connectionpool.c
index e06538ac7..0fa2a6456 100644
--- a/src/testbed/gnunet-service-testbed_connectionpool.c
+++ b/src/testbed/gnunet-service-testbed_connectionpool.c
@@ -333,11 +333,9 @@ destroy_pooled_connection (struct PooledConnection *entry)
333 * Expire a #PooledConnection object 333 * Expire a #PooledConnection object
334 * 334 *
335 * @param cls the #PooledConnection object 335 * @param cls the #PooledConnection object
336 * @param tc scheduler task context
337 */ 336 */
338static void 337static void
339expire (void *cls, 338expire (void *cls)
340 const struct GNUNET_SCHEDULER_TaskContext *tc)
341{ 339{
342 struct PooledConnection *entry = cls; 340 struct PooledConnection *entry = cls;
343 341
@@ -429,10 +427,9 @@ search_waiting (const struct PooledConnection *entry,
429 * further schedules itself if there are similar waiting objects which can be notified. 427 * further schedules itself if there are similar waiting objects which can be notified.
430 * 428 *
431 * @param cls the #PooledConnection object 429 * @param cls the #PooledConnection object
432 * @param tc the task context from scheduler
433 */ 430 */
434static void 431static void
435connection_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 432connection_ready (void *cls)
436{ 433{
437 struct PooledConnection *entry = cls; 434 struct PooledConnection *entry = cls;
438 struct GST_ConnectionPool_GetHandle *gh; 435 struct GST_ConnectionPool_GetHandle *gh;