diff options
author | waker <wakeroid@gmail.com> | 2010-11-01 18:39:58 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-11-01 18:39:58 +0100 |
commit | e0e7250cf34b03edb61195f0e3d28aeb85922372 (patch) | |
tree | 14cdb820cbd14fabe7cf68b73f340cb03d748604 /threading_pthread.c | |
parent | 86c756deeb6effd9b29968a3649f8387c0b6d62a (diff) |
0.4.3-portable-build1
Diffstat (limited to 'threading_pthread.c')
-rw-r--r-- | threading_pthread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/threading_pthread.c b/threading_pthread.c index 66db5844..9b6cc277 100644 --- a/threading_pthread.c +++ b/threading_pthread.c @@ -21,6 +21,9 @@ #include <errno.h> #include <string.h> #include "threading.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif intptr_t thread_start (void (*fn)(void *ctx), void *ctx) { @@ -69,12 +72,14 @@ thread_start_low_priority (void (*fn)(void *ctx), void *ctx) { fprintf (stderr, "pthread_create failed: %s\n", strerror (s)); return 0; } +#if !PORTABLE s = pthread_setschedprio (tid, minprio); if (s != 0) { fprintf (stderr, "pthread_setschedprio failed: %s\n", strerror (s)); pthread_cancel (tid); return 0; } +#endif s = pthread_attr_destroy (&attr); if (s != 0) { |