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: https://origsvn.digium.com/svn/asterisk/branches/1.4@51513
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#include <dirent.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#ifdef SOLARIS
+#include <thread.h>
+#endif
#ifdef HAVE_ZAPTEL
#include <zaptel/zaptel.h>
}
}
if (class->pseudofd > -1) {
+#ifdef SOLARIS
+ thr_yield();
+#endif
/* Pause some amount of time */
res = read(class->pseudofd, buf, sizeof(buf));
pthread_testcancel();