2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

checkpoint

This commit is contained in:
Bob Halley
1998-10-16 01:54:04 +00:00
parent 2985234619
commit b0f24684b3

View File

@@ -438,15 +438,25 @@ run(void *uap) {
timer_manager_t manager = uap;
struct timespec ts;
boolean_t timeout;
os_time_t now;
LOCK(&manager->lock);
while (!manager->done) {
INSIST(os_time_get(&now) == ISC_R_SUCCESS);
printf("timer run thread awake\n");
if (manager->nscheduled > 0) {
/*
* XXX
*/
/*
ts.tv_sec = manager->next_time.seconds;
ts.tv_nsec = manager->next_time.nanoseconds;
*/
ts.tv_sec = now.seconds + 5;
ts.tv_nsec = 0;
timeout = FALSE;
WAITUNTIL(&manager->wakeup, &manager->lock, &ts,