mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-12 18:27:06 +00:00
increase pri in sofia
This commit is contained in:
parent
464155c5cd
commit
0f477d1586
@ -263,11 +263,12 @@ int su_pthreaded_port_start(su_port_create_f *create,
|
|||||||
pthread_attr_init(&attr);
|
pthread_attr_init(&attr);
|
||||||
pthread_attr_setstacksize(&attr, 244);
|
pthread_attr_setstacksize(&attr, 244);
|
||||||
pthread_attr_getschedparam(&attr, ¶m);
|
pthread_attr_getschedparam(&attr, ¶m);
|
||||||
param.sched_priority = 1;
|
param.sched_priority = 99;
|
||||||
pthread_attr_setschedparam(&attr, ¶m);
|
pthread_attr_setschedparam(&attr, ¶m);
|
||||||
|
|
||||||
pthread_mutex_lock(arg.mutex);
|
pthread_mutex_lock(arg.mutex);
|
||||||
if (pthread_create(&tid, &attr, su_pthread_port_clone_main, &arg) == 0) {
|
if (pthread_create(&tid, &attr, su_pthread_port_clone_main, &arg) == 0) {
|
||||||
|
pthread_setschedprio(tid, 99);
|
||||||
pthread_cond_wait(arg.cv, arg.mutex);
|
pthread_cond_wait(arg.cv, arg.mutex);
|
||||||
thread_created = 1;
|
thread_created = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user