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

move sooner and set_index further down

This commit is contained in:
Bob Halley
1998-10-16 21:54:53 +00:00
parent c09dae9683
commit 9c018a718a

View File

@@ -83,31 +83,6 @@ struct timer_manager_t {
heap_t heap;
};
static boolean_t
sooner(void *v1, void *v2) {
timer_t t1, t2;
t1 = v1;
t2 = v2;
REQUIRE(VALID_TIMER(t1));
REQUIRE(VALID_TIMER(t2));
if (os_time_compare(&t1->due, &t2->due) < 0)
return (TRUE);
return (FALSE);
}
static void
set_index(void *what, unsigned int index) {
timer_t timer;
timer = what;
REQUIRE(VALID_TIMER(timer));
timer->index = index;
}
static inline isc_result
schedule(timer_t timer, os_time_t *nowp, boolean_t broadcast_ok) {
isc_result result;
@@ -557,6 +532,30 @@ run(void *uap) {
return (NULL);
}
static boolean_t
sooner(void *v1, void *v2) {
timer_t t1, t2;
t1 = v1;
t2 = v2;
REQUIRE(VALID_TIMER(t1));
REQUIRE(VALID_TIMER(t2));
if (os_time_compare(&t1->due, &t2->due) < 0)
return (TRUE);
return (FALSE);
}
static void
set_index(void *what, unsigned int index) {
timer_t timer;
timer = what;
REQUIRE(VALID_TIMER(timer));
timer->index = index;
}
isc_result
timer_manager_create(mem_context_t mctx, timer_manager_t *managerp) {
timer_manager_t manager;