os-unix: Actually call pthread_join() to avoid an infinite loop and 100% cpu usage. It happens randomly. Fixes #738. Thanks to kkrev or frankfranks.
parent
8eb4d2723f
commit
1cdd080445
|
@ -505,8 +505,10 @@ A Nvidia driver bug on Linux is the reason this has to be done, see:
|
||||||
http://www.nvnews.net/vbulletin/showthread.php?t=164619 */
|
http://www.nvnews.net/vbulletin/showthread.php?t=164619 */
|
||||||
void factor_vm::close_console()
|
void factor_vm::close_console()
|
||||||
{
|
{
|
||||||
if (stdin_thread_initialized_p)
|
if (stdin_thread_initialized_p) {
|
||||||
pthread_cancel(stdin_thread);
|
pthread_cancel(stdin_thread);
|
||||||
|
pthread_join(stdin_thread, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void factor_vm::lock_console()
|
void factor_vm::lock_console()
|
||||||
|
|
Loading…
Reference in New Issue