From 46e00da251818c899f22815f6476af0169556d5d Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 22 Aug 1995 00:24:38 +0000 Subject: [PATCH] recompute the current time variable after waiting in a semaphore (instead of select) --- src/ca/vxWorks_depen.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ca/vxWorks_depen.c b/src/ca/vxWorks_depen.c index 7ea3527f4..6dc18d01d 100644 --- a/src/ca/vxWorks_depen.c +++ b/src/ca/vxWorks_depen.c @@ -144,6 +144,12 @@ void cac_block_for_io_completion(struct timeval *pTV) ticks = min(LOCALTICKS, ticks); semTake(io_done_sem, ticks); + /* + * force a time update because we are not + * going to get one with a nill timeout in + * ca_mux_io() + */ + cac_gettimeval (&ca_static->currentTime); #endif } @@ -206,6 +212,12 @@ void cac_block_for_sg_completion(CASG *pcasg, struct timeval *pTV) ticks = min(LOCALTICKS, ticks); semTake (pcasg->sem, ticks); + /* + * force a time update because we are not + * going to get one with a nill timeout in + * ca_mux_io() + */ + cac_gettimeval (&ca_static->currentTime); #endif }