From 4382c6f02502a707c9e78a7f633645092ddf7850 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 11 Oct 2007 02:31:34 +0000 Subject: Fix Gtk rendering corruption problems when running monolithic (internal engine). Reduce Gtk main loop overhead when running monolithic. Fix crash on importing certain Om patches. git-svn-id: http://svn.drobilla.net/lad/raul@870 a436a847-0d15-0410-975c-d299462d15a1 --- src/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Thread.cpp b/src/Thread.cpp index 9214811..c0b570f 100644 --- a/src/Thread.cpp +++ b/src/Thread.cpp @@ -98,7 +98,7 @@ Thread::set_scheduling(int policy, unsigned int priority) { sched_param sp; sp.sched_priority = priority; - int result = pthread_setschedparam(_pthread, SCHED_FIFO, &sp); + int result = pthread_setschedparam(_pthread, policy, &sp); if (!result) { cout << "[" << _name << "] Set scheduling policy to "; switch (policy) { -- cgit v1.2.1