}
if ((stat = pthread_create((*new)->td, temp, dummy_worker, (*new))) == 0) {
+#ifndef __APPLE__
if (attr->priority) {
pthread_t *thread = (*new)->td;
pthread_setschedprio(*thread, attr->priority);
}
+#endif
return APR_SUCCESS;
}
pthread_mutex_lock(arg.mutex);
if (pthread_create(&tid, &attr, su_pthread_port_clone_main, &arg) == 0) {
-#ifndef WIN32
- /* this needs to be revisited when pthread for windows supports thread priority settings */
+
+#if defined (WIN32)
+ /* this needs to be revisited when pthread for Windows supports thread priority settings */
+#elif defined (__APPLE__)
+ /* no such function on Apple */
+#else
pthread_setschedprio(tid, 99);
#endif
pthread_cond_wait(arg.cv, arg.mutex);