mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 11:55:43 +00:00
Fixed issue where asynchronous I/O wouldn't be reliable after a device reset.
This commit is contained in:
@@ -428,6 +428,7 @@ if (ctx->asynch_io) {
|
||||
pthread_create (&ctx->io_thread, &attr, _disk_io, (void *)uptr);
|
||||
pthread_attr_destroy(&attr);
|
||||
uptr->a_check_completion = _disk_completion_dispatch;
|
||||
sim_os_ms_sleep(50); /* Give the _disk_io thread a chance to stabilize */
|
||||
}
|
||||
#endif
|
||||
return SCPE_OK;
|
||||
|
||||
Reference in New Issue
Block a user