aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-23 01:45:04 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-23 01:45:04 +0000
commit4f7a3d360d0cea407981752531c0fac21e575a90 (patch)
treed1795cd69565acbd5e388ec113df18ae06afb800 /res
parent94afe594b9362ba99fb58d0be03be90dc8ed4124 (diff)
Merged revisions 51512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51512 | file | 2007-01-22 20:41:35 -0500 (Mon, 22 Jan 2007) | 2 lines Yield before reading from zaptel timing source under Solaris so that other threads get a chance to do things. (issue #7875 reported by bob) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51513 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_musiconhold.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 328b099af..6d9c667ae 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -48,6 +48,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <dirent.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#ifdef SOLARIS
+#include <thread.h>
+#endif
#ifdef HAVE_ZAPTEL
#include <zaptel/zaptel.h>
@@ -506,6 +509,9 @@ static void *monmp3thread(void *data)
}
}
if (class->pseudofd > -1) {
+#ifdef SOLARIS
+ thr_yield();
+#endif
/* Pause some amount of time */
res = read(class->pseudofd, buf, sizeof(buf));
pthread_testcancel();