Mercurial > audlegacy-plugins
diff src/paranormal/plugin.c @ 205:57ec651ac031 trunk
[svn] - yield back to the scheduler after processing a frame (maybe this will make paranormal be nicer.)
author | nenolod |
---|---|
date | Fri, 03 Nov 2006 14:54:55 -0800 |
parents | 0393aae79318 |
children | a1be19f8de1f |
line wrap: on
line diff
--- a/src/paranormal/plugin.c Fri Nov 03 14:23:17 2006 -0800 +++ b/src/paranormal/plugin.c Fri Nov 03 14:54:55 2006 -0800 @@ -14,6 +14,7 @@ #include <memory.h> #include <math.h> #include <setjmp.h> +#include <unistd.h> #include <glib.h> #include <glib/gi18n.h> @@ -150,6 +151,10 @@ SDL_mutexP (config_mutex); pn_render (); SDL_mutexV (config_mutex); + +#ifdef _POSIX_PRIORITY_SCHEDULING + sched_yield(); +#endif } /* Just in case a pn_quit () was called in the loop */