fix thread priority code, this has never worked until today

This commit is contained in:
Anthony Minessale committed 2012-09-27 13:38:02 -05:00
1 parent c7283aaa1a
commit 90f3ab4099
4 files changed
+10 -13

No files matched your search

+5
View File
@@ -174,6 +174,11 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new,
}
if ((stat = pthread_create((*new)->td, temp, dummy_worker, (*new))) == 0) {
if (attr->priority) {
pthread_t *thread = (*new)->td;
pthread_setschedprio(*thread, attr->priority);
}
return APR_SUCCESS;
}
else {