mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-26 08:32:20 +00:00
Small hack for clean exits on Nigel's OS X port
This commit is contained in:
parent
3802e35346
commit
5d09d2b6c4
@ -167,7 +167,12 @@ static void stop_thread(void)
|
|||||||
#ifdef HAVE_PTHREAD_CANCEL
|
#ifdef HAVE_PTHREAD_CANCEL
|
||||||
pthread_cancel(ether_thread);
|
pthread_cancel(ether_thread);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef AQUA
|
||||||
|
// This call, which waits for ether_thread to terminate,
|
||||||
|
// never returns when used in Nigel's OS X port.
|
||||||
|
#else
|
||||||
pthread_join(ether_thread, NULL);
|
pthread_join(ether_thread, NULL);
|
||||||
|
#endif
|
||||||
sem_destroy(&int_ack);
|
sem_destroy(&int_ack);
|
||||||
thread_active = false;
|
thread_active = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user