recompute the current time variable after waiting in a semaphore

(instead of select)
This commit is contained in:
Jeff Hill
1995-08-22 00:24:38 +00:00
parent 39d98562fc
commit 46e00da251
+12
View File
@@ -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
}