mirror of
https://github.com/open-simh/simh.git
synced 2026-03-03 18:26:48 +00:00
SCP: Properly cancel very long event waits
usecs_remaining must be zero to be sure that canceling is complete.
This commit is contained in:
1
scp.c
1
scp.c
@@ -10003,6 +10003,7 @@ if (nptr != QUEUE_LIST_END)
|
||||
nptr->time += (uptr->next) ? 0 : uptr->time;
|
||||
if (!uptr->next)
|
||||
uptr->time = 0;
|
||||
uptr->usecs_remaining = 0;
|
||||
if (sim_clock_queue != QUEUE_LIST_END)
|
||||
sim_interval = sim_clock_queue->time;
|
||||
else sim_interval = noqueue_time = NOQUEUE_WAIT;
|
||||
|
||||
Reference in New Issue
Block a user