mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-23 19:29:18 +00:00
fix for no-threads case for an emulated 68k [Todd Vierling]
This commit is contained in:
parent
16b21014ef
commit
2257e7be3f
@ -615,7 +615,9 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
// Start 60Hz timer
|
// Start 60Hz timer
|
||||||
sigemptyset(&timer_sa.sa_mask); // Block virtual 68k interrupts during SIGARLM handling
|
sigemptyset(&timer_sa.sa_mask); // Block virtual 68k interrupts during SIGARLM handling
|
||||||
|
#if !EMULATED_68K
|
||||||
sigaddset(&timer_sa.sa_mask, SIG_IRQ);
|
sigaddset(&timer_sa.sa_mask, SIG_IRQ);
|
||||||
|
#endif
|
||||||
timer_sa.sa_handler = one_tick;
|
timer_sa.sa_handler = one_tick;
|
||||||
timer_sa.sa_flags = SA_ONSTACK | SA_RESTART;
|
timer_sa.sa_flags = SA_ONSTACK | SA_RESTART;
|
||||||
if (sigaction(SIGALRM, &timer_sa, NULL) < 0) {
|
if (sigaction(SIGALRM, &timer_sa, NULL) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user