summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-31 23:01:48 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-31 23:01:48 -0400
commit5af8826c921dfe73e04a24e1e092a04c97f577a2 (patch)
tree8a7becf119bb737c9794978aed2abbe0c522b41e /gpsd.h-tail
parent1703033e9476f8368492c0881f9b5ec36752133b (diff)
downloadgpsd-5af8826c921dfe73e04a24e1e092a04c97f577a2.tar.gz
Eliminate the race in KPPS thread startup.
The previous change (ntpd_link_activate() moving to after device-open time) made it possible to lift the attempts at KPPS initialization out of the PPS-watcher thread, because it no longer has to await the device open. This also greatly simplifies the generic thread-watcher interface. All regression tests pass, PPS is live.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail3
1 files changed, 0 insertions, 3 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index bbd0db61..f555fda9 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -472,8 +472,6 @@ struct gps_device_t {
pps_handle_t kernelpps_handle;
#endif /* defined(HAVE_SYS_TIMEPPS_H) */
int chronyfd; /* for talking to chrony */
- /*@null@*/ void (*thread_init_hook)(struct gps_device_t *);
- /*@null@*/ void (*thread_error_hook)(struct gps_device_t *);
/*@null@*/ char *(*thread_report_hook)(struct gps_device_t *,
struct timeval *,
struct timespec *,
@@ -862,7 +860,6 @@ extern void ntpd_link_activate(struct gps_device_t *);
TS_NORM( ts ); \
} while (0)
-extern void gpsd_await_pps_initialization(struct gps_context_t *);
extern void pps_thread_activate(struct gps_device_t *);
extern void pps_thread_deactivate(struct gps_device_t *);