schedu
This commit is contained in:
parent
81cb7d5241
commit
59ffa3e4b4
@ -360,6 +360,31 @@ cleanup_auction_data ()
|
||||
free (ad);
|
||||
}
|
||||
|
||||
static void
|
||||
ending (void *arg)
|
||||
{
|
||||
printf ("Good bye!!\n");
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
world (void *arg)
|
||||
{
|
||||
printf ("World!\n");
|
||||
GNUNET_SCHEDULER_shutdown ();
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
hello (void *arg)
|
||||
{
|
||||
printf ("Hello\n");
|
||||
GNUNET_SCHEDULER_add_shutdown (&ending, NULL);
|
||||
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
|
||||
&world,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
@ -370,6 +395,8 @@ main (int argc, char *argv[])
|
||||
bidders = 2;
|
||||
prizes = 2 * bidders;
|
||||
|
||||
GNUNET_SCHEDULER_run (&hello, NULL);
|
||||
|
||||
edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024, 16);
|
||||
BRANDT_init (edc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user