diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-11-09 00:16:08 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-11-09 00:16:08 +0000 |
commit | 33c15f19fefbd1a5f72f5f4c0816b25a662d95f7 (patch) | |
tree | 01cc15a5f3db7799a4d8878045fd62868693ff09 /res | |
parent | 9b03ffc51323ba2c090ea835c163b70089ecf48c (diff) |
issue #5601
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-x | res/res_features.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/res/res_features.c b/res/res_features.c index 92137a65f..04cccc265 100755 --- a/res/res_features.c +++ b/res/res_features.c @@ -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); } |