aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_scheduler_delay.c
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/util/test_scheduler_delay.c
parent7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff)
downloadgnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz
gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/util/test_scheduler_delay.c')
-rw-r--r--src/util/test_scheduler_delay.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/test_scheduler_delay.c b/src/util/test_scheduler_delay.c
index c55f28e9b..93568cd81 100644
--- a/src/util/test_scheduler_delay.c
+++ b/src/util/test_scheduler_delay.c
@@ -62,7 +62,8 @@ test_task (void *cls)
62 return; 62 return;
63 } 63 }
64 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply 64 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
65 (GNUNET_TIME_UNIT_MICROSECONDS, i), &test_task, 65 (GNUNET_TIME_UNIT_MICROSECONDS, i),
66 &test_task,
66 NULL); 67 NULL);
67 i += INCR; 68 i += INCR;
68} 69}
@@ -71,7 +72,9 @@ test_task (void *cls)
71int 72int
72main (int argc, char *argv[]) 73main (int argc, char *argv[])
73{ 74{
74 GNUNET_log_setup ("test-scheduler-delay", "WARNING", NULL); 75 GNUNET_log_setup ("test-scheduler-delay",
76 "WARNING",
77 NULL);
75 target = GNUNET_TIME_absolute_get (); 78 target = GNUNET_TIME_absolute_get ();
76 GNUNET_SCHEDULER_run (&test_task, NULL); 79 GNUNET_SCHEDULER_run (&test_task, NULL);
77 FPRINTF (stdout, 80 FPRINTF (stdout,