From e1dc27894160ce0ae5c0d9601413b0d9eed034a8 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 23 Jan 2007 01:41:35 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@51512 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 746fa2d061..04e4a39eeb 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -45,6 +45,9 @@ #endif #include #include +#ifdef SOLARIS +#include +#endif #include "asterisk.h" @@ -508,6 +511,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(); -- 2.47.3