[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9523 - gnunet/src/topology
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9523 - gnunet/src/topology |
Date: |
Sun, 15 Nov 2009 11:12:39 -0700 |
Author: grothoff
Date: 2009-11-15 11:12:39 -0700 (Sun, 15 Nov 2009)
New Revision: 9523
Modified:
gnunet/src/topology/test_gnunet_service_topology.c
Log:
do not use sleep, use scheduler
Modified: gnunet/src/topology/test_gnunet_service_topology.c
===================================================================
--- gnunet/src/topology/test_gnunet_service_topology.c 2009-11-15 18:12:19 UTC
(rev 9522)
+++ gnunet/src/topology/test_gnunet_service_topology.c 2009-11-15 18:12:39 UTC
(rev 9523)
@@ -49,6 +49,15 @@
static struct GNUNET_SCHEDULER_Handle *sched;
+static void
+clean_up_task (void *cls,
+ const struct GNUNET_SCHEDULER_TaskContext *tc)
+{
+ GNUNET_TESTING_daemons_stop (pg);
+ ok = 0;
+}
+
+
static void
notify_connect_complete(void *cls,
const char *emsg)
@@ -67,9 +76,10 @@
/* FIXME: check that topology adds a few more links
in addition to those that were seeded */
/* For now, sleep so we can have the daemon do some work */
- sleep (10);
- GNUNET_TESTING_daemons_stop (pg);
- ok = 0;
+ GNUNET_SCHEDULER_add_delayed (sched,
+ GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_SECONDS, 5),
+ &clean_up_task,
+ NULL);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9523 - gnunet/src/topology,
gnunet <=