1
0
mirror of https://github.com/simh/simh.git synced 2026-05-04 23:15:23 +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

@@ -335,7 +335,7 @@ if (ctx) {
return FALSE;
}
static void _tape_cancel (UNIT *uptr)
static t_bool _tape_cancel (UNIT *uptr)
{
struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx;
@@ -348,6 +348,7 @@ if (ctx) {
pthread_mutex_unlock (&ctx->io_lock);
}
}
return FALSE;
}
#else
#define AIO_CALLSETUP \