mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FS-4753 --resolve this should properly detect it everywhere
This commit is contained in:
@@ -1 +1 @@
|
||||
Mon Oct 1 12:24:45 CDT 2012
|
||||
Tue Oct 23 13:13:35 EDT 2012
|
||||
|
||||
@@ -40,6 +40,9 @@ dist_man_MANS =
|
||||
# man/man1/localinfo.1 man/man1/addrinfo.1 \
|
||||
# man/man1/stunc.1 man/man1/sip-dig.1
|
||||
|
||||
noop:
|
||||
@echo ok
|
||||
|
||||
$(dist_man_MANS): manpages
|
||||
|
||||
manpages:
|
||||
|
||||
@@ -254,6 +254,9 @@ if test x"$have_check" = "xyes"; then
|
||||
fi
|
||||
AC_CHECK_HEADERS([fnmatch.h])
|
||||
|
||||
AC_CHECK_LIB(pthread, pthread_setschedprio, [AC_DEFINE(HAVE_PTHREAD_SETSCHEDPRIO, 1, [Define if you have pthread_setschedprio()])])
|
||||
|
||||
|
||||
dnl dl is currently used only in testing
|
||||
AC_CHECK_LIB([dl], [dlopen], [
|
||||
dnl Note: -ldl is not added to LIBS
|
||||
|
||||
@@ -269,13 +269,10 @@ int su_pthreaded_port_start(su_port_create_f *create,
|
||||
pthread_mutex_lock(arg.mutex);
|
||||
if (pthread_create(&tid, &attr, su_pthread_port_clone_main, &arg) == 0) {
|
||||
|
||||
#if defined (WIN32)
|
||||
/* this needs to be revisited when pthread for Windows supports thread priority settings */
|
||||
#elif defined (__APPLE__)
|
||||
/* no such function on Apple */
|
||||
#else
|
||||
#ifdef HAVE_PTHREAD_SETSCHEDPRIO
|
||||
pthread_setschedprio(tid, 99);
|
||||
#endif
|
||||
|
||||
pthread_cond_wait(arg.cv, arg.mutex);
|
||||
thread_created = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user