summaryrefslogtreecommitdiffstats
path: root/lib/qpnexus.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-09 17:59:03 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-09 17:59:03 +0000
commitb3edb8b2b5d1e9c7b23bad9de6802e89c3a8fd0b (patch)
tree8f71c2d4efb98e8644c881c3d055ebf29b6ddb4c /lib/qpnexus.c
parent482674bb1e9401fa4f954fb03cdc84ad9908845f (diff)
downloadquagga-b3edb8b2b5d1e9c7b23bad9de6802e89c3a8fd0b.tar.bz2
quagga-b3edb8b2b5d1e9c7b23bad9de6802e89c3a8fd0b.tar.xz
Ensure all timeouts are timeout times in qtime_mono_t.
Introduced separate types for qtime_mono_t and qtime_real_t, to distinguish the time base of a given value. Revised all users of timeouts so that they are all expressed as qtime_mono_t values, so are all Quagga monotonic time based. Revised qpt_cond_timedwait() so that all condition variables use the same timebase (CLOCK_MONOTONIC if available, by default). Now all timeout times are qtime_mono_t, and are converted to whatever the condition variable is set to, if necessary. Added explicit timeout to mqueue. Fixed qps_pselect() to zeroise result vectors if no fds are reported pending -- seems the O/S does not do this.
Diffstat (limited to 'lib/qpnexus.c')
-rw-r--r--lib/qpnexus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/qpnexus.c b/lib/qpnexus.c
index fc4d6b9d..01985d29 100644
--- a/lib/qpnexus.c
+++ b/lib/qpnexus.c
@@ -90,7 +90,7 @@ qpn_start(void* arg)
while (!qpn->terminate)
{
- qtime_t now = qtimer_time_now();
+ qtime_mono_t now = qt_get_monotonic();
/* process timers */
while (qtimer_pile_dispatch_next(qpn->pile, now))