mirror of
https://github.com/simh/simh.git
synced 2026-05-05 15:33:34 +00:00
TMXR: Give priority to pending transfer delays prior to considering queued data
This commit is contained in:
@@ -4198,11 +4198,11 @@ for (i=0; i<mp->lines; i++) {
|
|||||||
if ((tmxr_tqln(lp)) && /* pending output data */
|
if ((tmxr_tqln(lp)) && /* pending output data */
|
||||||
(lp->txnexttime < sim_gtime_now))/* that can be transmitted now? */
|
(lp->txnexttime < sim_gtime_now))/* that can be transmitted now? */
|
||||||
tmxr_send_buffered_data (lp);/* flush it */
|
tmxr_send_buffered_data (lp);/* flush it */
|
||||||
if (tmxr_tqln(lp) == 0) /* no pending output data */
|
if (lp->txnexttime > sim_gtime_now)
|
||||||
due = interval; /* No rush */
|
due = (int32)(lp->txnexttime - sim_gtime_now);
|
||||||
else {
|
else {
|
||||||
if (lp->txnexttime > sim_gtime_now)
|
if (tmxr_tqln(lp) == 0) /* no pending output data */
|
||||||
due = (int32)(lp->txnexttime - sim_gtime_now);
|
due = interval; /* No rush */
|
||||||
else
|
else
|
||||||
due = sim_processing_event ? 1 : 0; /* avoid potential infinite loop if called from service routine */
|
due = sim_processing_event ? 1 : 0; /* avoid potential infinite loop if called from service routine */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user