Use pthread_setconcurrency() in wxThread::SetConcurrency().
Use POSIX function if available instead of only using Solaris-specific thr_setconcurrency() which is not found in modern Linux systems any more. Closes #2115. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4977,7 +4977,13 @@ if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
|
||||
|
||||
dnl do other tests only if we are using threads
|
||||
if test "$wxUSE_THREADS" = "yes" ; then
|
||||
AC_CHECK_FUNCS(thr_setconcurrency)
|
||||
AC_CHECK_FUNCS(pthread_setconcurrency,
|
||||
AC_DEFINE(HAVE_PTHREAD_SET_CONCURRENCY),
|
||||
[
|
||||
AC_CHECK_FUNCS(thr_setconcurrency,
|
||||
AC_DEFINE(HAVE_THR_SETCONCURRENCY),
|
||||
AC_MSG_WARN(Setting thread concurrency will not work properly))
|
||||
])
|
||||
|
||||
dnl can't use AC_CHECK_FUNCS for this one as it's usually a macro and so
|
||||
dnl wouldn't be found by it
|
||||
|
Reference in New Issue
Block a user