pthread_mutex_init(&stdin_mutex, NULL);
}
+// This method is used to kill the stdin_loop before exiting from factor.
+// A Nvidia driver bug on Linux is the reason this has to be done, see:
+// http://www.nvnews.net/vbulletin/showthread.php?t=164619
+void factor_vm::close_console()
+{
+ pthread_mutex_lock(&stdin_mutex);
+ pthread_kill(stdin_thread, SIGTERM);
+}
+
void factor_vm::lock_console()
{
// Lock the stdin_mutex and send the stdin_loop thread a signal to interrupt
{
}
+void factor_vm::close_console()
+{
+}
+
void factor_vm::sampler_thread_loop()
{
LARGE_INTEGER counter, new_counter, units_per_second;