diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-04-01 04:13:59 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-04-01 04:13:59 -0400 |
commit | 27421a355f42c6303cae74a861a86f5c96d29d18 (patch) | |
tree | 4dd940e46fd5397856139ca14d0be96fcb82b3a1 /ppsthread.h | |
parent | b72e52abcec878350f5c522d243a643cb0ebcc92 (diff) | |
download | gpsd-27421a355f42c6303cae74a861a86f5c96d29d18.tar.gz |
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.
Diffstat (limited to 'ppsthread.h')
-rw-r--r-- | ppsthread.h | 5 |
1 files changed, 1 insertions, 4 deletions
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; |