[asterisk-commits] file: branch 1.2 r51512 -
/branches/1.2/res/res_musiconhold.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Jan 22 18:41:36 MST 2007
Author: file
Date: Mon Jan 22 19:41:35 2007
New Revision: 51512
URL: http://svn.digium.com/view/asterisk?view=rev&rev=51512
Log:
Yield before reading from zaptel timing source under Solaris so that other threads get a chance to do things. (issue #7875 reported by bob)
Modified:
branches/1.2/res/res_musiconhold.c
Modified: branches/1.2/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_musiconhold.c?view=diff&rev=51512&r1=51511&r2=51512
==============================================================================
--- branches/1.2/res/res_musiconhold.c (original)
+++ branches/1.2/res/res_musiconhold.c Mon Jan 22 19:41:35 2007
@@ -45,6 +45,9 @@
#endif
#include <unistd.h>
#include <sys/ioctl.h>
+#ifdef SOLARIS
+#include <thread.h>
+#endif
#include "asterisk.h"
@@ -508,6 +511,9 @@
}
}
if (class->pseudofd > -1) {
+#ifdef SOLARIS
+ thr_yield();
+#endif
/* Pause some amount of time */
res = read(class->pseudofd, buf, sizeof(buf));
pthread_testcancel();
More information about the asterisk-commits
mailing list