From c7b5592846f9331163dfde373a557083bee16da4 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 19 Oct 1995 20:37:19 +0000 Subject: [PATCH] make certain we dont use CPU while waiting for a flush to complete --- src/ca/iocinf.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ca/iocinf.c b/src/ca/iocinf.c index 33f39fde3..5e95a81f5 100644 --- a/src/ca/iocinf.c +++ b/src/ca/iocinf.c @@ -1790,8 +1790,7 @@ void cac_mux_io(struct timeval *ptimeout) } else { if (caSendMsgPending()) { - timeout.tv_sec = 100; - timeout.tv_usec = 0; + LD_CA_TIME (SELECT_POLL, &timeout); } else { ca_static->ca_flush_pending @@ -1804,10 +1803,10 @@ void cac_mux_io(struct timeval *ptimeout) break; } } + else { + LD_CA_TIME (0.0, &timeout); + } ca_process_input_queue(); - timeout.tv_sec = 0; - timeout.tv_usec = 0; - } }