mirror of
https://github.com/simh/simh.git
synced 2026-01-30 21:32:27 +00:00
SCP: Make sim_cancel more efficient by stopping search as soon as canceled
This commit is contained in:
@@ -239,7 +239,7 @@ if (ctx) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void _disk_cancel (UNIT *uptr)
|
||||
static t_bool _disk_cancel (UNIT *uptr)
|
||||
{
|
||||
struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx;
|
||||
|
||||
@@ -252,6 +252,7 @@ if (ctx) {
|
||||
pthread_mutex_unlock (&ctx->io_lock);
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
#else
|
||||
#define AIO_CALLSETUP
|
||||
|
||||
Reference in New Issue
Block a user