1
0
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:
Mark Pizzolato
2016-12-24 09:49:32 -08:00
parent 875926c271
commit 7c2d20f26f
5 changed files with 27 additions and 26 deletions

View File

@@ -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