aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
commit95f9076a2139f5fb042b944a0658b6cda2fa35db (patch)
treeb0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/dv
parent7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff)
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/gnunet-dv.c3
-rw-r--r--src/dv/gnunet-service-dv.c3
-rw-r--r--src/dv/test_transport_dv.c4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/dv/gnunet-dv.c b/src/dv/gnunet-dv.c
index d5d95acca4..d0917d3631 100644
--- a/src/dv/gnunet-dv.c
+++ b/src/dv/gnunet-dv.c
@@ -145,8 +145,7 @@ run (void *cls, char *const *args, const char *cfgfile,
&change_cb,
&disconnect_cb,
&message_cb);
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
- &shutdown_task, NULL);
+ GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL);
}
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index bd0057ab47..df95fd67b3 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -2229,8 +2229,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
MAX_QUEUE_SIZE_PLUGIN);
stats = GNUNET_STATISTICS_create ("dv", cfg);
GNUNET_SERVER_add_handlers (server, plugin_handlers);
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
- &shutdown_task, NULL);
+ GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL);
}
diff --git a/src/dv/test_transport_dv.c b/src/dv/test_transport_dv.c
index 1afa30fa9e..0a43252a5c 100644
--- a/src/dv/test_transport_dv.c
+++ b/src/dv/test_transport_dv.c
@@ -82,8 +82,8 @@ test_connection (void *cls,
unsigned int links_succeeded,
unsigned int links_failed)
{
- shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
- &do_shutdown, NULL);
+ shutdown_task = GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
+ NULL);
if (4 != num_peers)
{
ok = 1;