timer_test.c revision db1e643c60d9b521c421f3f528e7946dd37cacbf
#include "attribute.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <isc/assertions.h>
#include <isc/memcluster.h>
int tick_count = 0;
static isc_boolean_t
return (ISC_TRUE);
}
static isc_boolean_t
{
tick_count++;
if (tick_count % 3 == 0)
if (tick_count == 7) {
struct isc_interval interval;
(void)isc_time_get(&now);
printf("*** resetting ti3 ***\n");
== ISC_R_SUCCESS);
}
return (ISC_FALSE);
}
static isc_boolean_t
{
char *type;
type = "idle";
else
type = "life";
printf("*** saving task 3 ***\n");
return (ISC_FALSE);
}
return (ISC_TRUE);
}
void
unsigned int workers;
struct isc_interval interval;
if (argc > 1)
else
workers = 2;
(void)isc_time_get(&now);
sleep(15);
printf("destroy\n");
sleep(2);
printf("destroyed\n");
}