mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 10:51:40 +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:
@@ -1,5 +1,7 @@
|
||||
2005-11-08 Kevin P. Fleming <kpfleming@digium.com>
|
||||
|
||||
* res/res_features.c (ast_bridge_call_thread_launch): set SCHED_RR separately from thread creation, so it won't fail when running as non-root (issue #5601, different fix)
|
||||
|
||||
* pbx.c (pbx_builtin_pushvar_helper): add new API function for setting variables that can exist multiple times (issue #2720)
|
||||
* apps/Makefile (APPS): add app_stack (issue #2720)
|
||||
* apps/app_stack.c: new applications (issue #2720)
|
||||
|
@@ -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