[Asterisk-cvs] asterisk/res res_features.c,1.80,1.81

kpfleming kpfleming
Tue Nov 8 19:25:09 CST 2005


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv25436/res

Modified Files:
	res_features.c 
Log Message:
issue #5601


Index: res_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_features.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- res_features.c	8 Nov 2005 04:02:35 -0000	1.80
+++ res_features.c	9 Nov 2005 00:16:08 -0000	1.81
@@ -244,13 +244,14 @@
 {
 	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);
 }
 
 




More information about the svn-commits mailing list