From fea077efa41959daee6e091a9029293210eaf9d1 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 5 Apr 2010 17:23:43 +0200 Subject: restrict pthread_setschedprio to linux --- threading_pthread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'threading_pthread.c') diff --git a/threading_pthread.c b/threading_pthread.c index 4f7cba1a..e6b9df9c 100644 --- a/threading_pthread.c +++ b/threading_pthread.c @@ -48,6 +48,7 @@ thread_start (void (*fn)(void *ctx), void *ctx) { intptr_t thread_start_low_priority (void (*fn)(void *ctx), void *ctx) { +#ifdef __linux__ pthread_t tid; pthread_attr_t attr; int s = pthread_attr_init (&attr); @@ -82,6 +83,9 @@ thread_start_low_priority (void (*fn)(void *ctx), void *ctx) { return 0; } return tid; +#else + return thread_start (fn, ctx); +#endif } int -- cgit v1.2.3