From 1cea503e08bd8103a59c64024a32523ef4dd5076 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 9 May 2007 04:56:07 +0000 Subject: #ifdef'ed out sched_setscheduler on Mac OS X since its not supported there svn path=/trunk/externals/pidip/; revision=7636 --- modules/pdp_theorin~.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/pdp_theorin~.c') diff --git a/modules/pdp_theorin~.c b/modules/pdp_theorin~.c index 4ebd4d3..b2a0c5a 100644 --- a/modules/pdp_theorin~.c +++ b/modules/pdp_theorin~.c @@ -404,11 +404,12 @@ static void *pdp_decode_file(void *tdata) twait.tv_nsec = 10000000; // 10 ms schedprio.sched_priority = sched_get_priority_min(SCHED_FIFO) + x->x_priority; +#ifdef __gnu_linux__ if ( sched_setscheduler(0, SCHED_FIFO, &schedprio) == -1) { post("pdp_theorin~ : couldn't set priority for decoding thread."); } - +#endif while ( x->x_decodechild ) { if ( ( x->x_reading ) && ( ( x->x_autoplay ) || ( x->x_nextimage == 1 ) ) ) -- cgit v1.2.1