FS-4753 --resolve this should properly detect it everywhere

This commit is contained in:
Anthony Minessale
2012-10-23 13:14:51 -04:00
parent 4b6db1329c
commit 5f469ad2bd
11 changed files with 34 additions and 9 deletions

View File

@@ -174,7 +174,8 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new,
}
if ((stat = pthread_create((*new)->td, temp, dummy_worker, (*new))) == 0) {
#ifndef __APPLE__
#ifdef HAVE_PTHREAD_SETSCHEDPRIO
if (attr && attr->priority) {
pthread_t *thread = (*new)->td;
pthread_setschedprio(*thread, attr->priority);