From 27421a355f42c6303cae74a861a86f5c96d29d18 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 1 Apr 2015 04:13:59 -0400 Subject: Further thread-monitor interface simplification. Remove the wrap hook. The only thing it was doing was closing the chrony fd. which can be done just as cleanly by whatever calls the pps_thread_deactivate() function. --- ppsthread.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ppsthread.h') diff --git a/ppsthread.h b/ppsthread.h index 5c95e72b..6dc18964 100644 --- a/ppsthread.h +++ b/ppsthread.h @@ -31,9 +31,7 @@ struct timedelta_t { * two functions are for. * * The report hook is called when each PPS event is recognized. The log - * hook is called to log error and status indications from the thread. The - * wrap hook is called when the thread terminates as the result of a - * deactivate call. + * hook is called to log error and status indications from the thread. */ struct pps_thread_t { void *context; /* PPS thread code leaves this alone */ @@ -43,7 +41,6 @@ struct pps_thread_t { struct timedelta_t *); void (*log_hook)(volatile struct pps_thread_t *, int errlevel, const char *fmt, ...); - void (*wrap_hook)(volatile struct pps_thread_t *); struct timedelta_t fix_in; /* real & clock time when in-band fix received */ struct timedelta_t pps_out; /* real & clock time of last PPS event */ int ppsout_count; -- cgit v1.2.1