mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
issue #5601
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -244,13 +244,14 @@ static void ast_bridge_call_thread_launch(void *data)
|
||||
{
|
||||
pthread_t thread;
|
||||
pthread_attr_t attr;
|
||||
int result;
|
||||
struct sched_param sched;
|
||||
|
||||
result = pthread_attr_init(&attr);
|
||||
pthread_attr_setschedpolicy(&attr, SCHED_RR);
|
||||
pthread_attr_init(&attr);
|
||||
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||
result = ast_pthread_create(&thread, &attr,ast_bridge_call_thread, data);
|
||||
result = pthread_attr_destroy(&attr);
|
||||
ast_pthread_create(&thread, &attr,ast_bridge_call_thread, data);
|
||||
pthread_attr_destroy(&attr);
|
||||
memset(&sched, 0, sizeof(sched));
|
||||
pthread_setschedparam(thread, SCHED_RR, &sched);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user