mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 15:44:21 +00:00
fix thread priority code, this has never worked until today
This commit is contained in:
1 parent
c7283aaa1a
commit
90f3ab4099
4 files changed
+10
-13
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user