diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:26:19 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:26:19 +0000 |
commit | 46aedb2a4c5ada8aa2fff6a4b860b1300ab7303f (patch) | |
tree | 6e07ad71afee0c1666076dbdd9e7c5a28b24dbed /src/testing/testing_group.c | |
parent | e027e2d0362fc9ebff1c679bbc50425a5d0db3f9 (diff) | |
download | gnunet-46aedb2a4c5ada8aa2fff6a4b860b1300ab7303f.tar.gz gnunet-46aedb2a4c5ada8aa2fff6a4b860b1300ab7303f.zip |
shutdown
Diffstat (limited to 'src/testing/testing_group.c')
-rw-r--r-- | src/testing/testing_group.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index b4ad6d9a4..be9743b1f 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c | |||
@@ -3388,7 +3388,7 @@ hello_sent_callback (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
3388 | { | 3388 | { |
3389 | struct SendHelloContext *send_hello_context = cls; | 3389 | struct SendHelloContext *send_hello_context = cls; |
3390 | //unsigned int pg_iter; | 3390 | //unsigned int pg_iter; |
3391 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 3391 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
3392 | { | 3392 | { |
3393 | GNUNET_free(send_hello_context); | 3393 | GNUNET_free(send_hello_context); |
3394 | return; | 3394 | return; |
@@ -3446,7 +3446,7 @@ static void schedule_send_hellos (void *cls, const struct GNUNET_SCHEDULER_TaskC | |||
3446 | struct SendHelloContext *send_hello_context = cls; | 3446 | struct SendHelloContext *send_hello_context = cls; |
3447 | struct GNUNET_TESTING_PeerGroup *pg = send_hello_context->pg; | 3447 | struct GNUNET_TESTING_PeerGroup *pg = send_hello_context->pg; |
3448 | 3448 | ||
3449 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 3449 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
3450 | { | 3450 | { |
3451 | GNUNET_free(send_hello_context); | 3451 | GNUNET_free(send_hello_context); |
3452 | return; | 3452 | return; |
@@ -3574,7 +3574,7 @@ schedule_connect(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
3574 | struct ConnectContext *connect_context = cls; | 3574 | struct ConnectContext *connect_context = cls; |
3575 | struct GNUNET_TESTING_PeerGroup *pg = connect_context->ct_ctx->pg; | 3575 | struct GNUNET_TESTING_PeerGroup *pg = connect_context->ct_ctx->pg; |
3576 | 3576 | ||
3577 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 3577 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
3578 | return; | 3578 | return; |
3579 | 3579 | ||
3580 | if ((pg->outstanding_connects > pg->max_outstanding_connections) | 3580 | if ((pg->outstanding_connects > pg->max_outstanding_connections) |
@@ -4801,7 +4801,7 @@ schedule_get_topology(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
4801 | struct CoreContext *core_context = cls; | 4801 | struct CoreContext *core_context = cls; |
4802 | struct TopologyIterateContext *topology_context = | 4802 | struct TopologyIterateContext *topology_context = |
4803 | (struct TopologyIterateContext *) core_context->iter_context; | 4803 | (struct TopologyIterateContext *) core_context->iter_context; |
4804 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 4804 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
4805 | return; | 4805 | return; |
4806 | 4806 | ||
4807 | if (topology_context->connected | 4807 | if (topology_context->connected |
@@ -4945,7 +4945,7 @@ schedule_get_statistics(void *cls, | |||
4945 | struct StatsIterateContext *stats_context = | 4945 | struct StatsIterateContext *stats_context = |
4946 | (struct StatsIterateContext *) core_context->iter_context; | 4946 | (struct StatsIterateContext *) core_context->iter_context; |
4947 | 4947 | ||
4948 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 4948 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
4949 | return; | 4949 | return; |
4950 | 4950 | ||
4951 | if (stats_context->connected > stats_context->pg->max_outstanding_connections) | 4951 | if (stats_context->connected > stats_context->pg->max_outstanding_connections) |
@@ -5427,7 +5427,7 @@ internal_continue_startup(void *cls, | |||
5427 | { | 5427 | { |
5428 | struct InternalStartContext *internal_context = cls; | 5428 | struct InternalStartContext *internal_context = cls; |
5429 | 5429 | ||
5430 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 5430 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
5431 | { | 5431 | { |
5432 | return; | 5432 | return; |
5433 | } | 5433 | } |
@@ -5540,7 +5540,7 @@ internal_start(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
5540 | { | 5540 | { |
5541 | struct InternalStartContext *internal_context = cls; | 5541 | struct InternalStartContext *internal_context = cls; |
5542 | 5542 | ||
5543 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 5543 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
5544 | { | 5544 | { |
5545 | return; | 5545 | return; |
5546 | } | 5546 | } |