From 8f167cbecd1d8d3a027c6a0e971c04a16b57ddf0 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Wed, 3 Jul 2002 15:30:46 +0000 Subject: [PATCH] Fixed bugs in posix thread priority resolution. Also added AIX priorities. 2002-07-03 Sebastian Wilhelmi * configure.in: Fixed bugs in posix thread priority resolution. Also added AIX priorities. Fix from Laurent Vivier . (#82599) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-12 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ configure.in | 11 +++++++++-- 8 files changed, 37 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c0eebe2..d863951 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-07-03 Sebastian Wilhelmi + * configure.in: Fixed bugs in posix thread priority + resolution. Also added AIX priorities. Fix from + Laurent Vivier . (#82599) + * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c0eebe2..d863951 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2002-07-03 Sebastian Wilhelmi + * configure.in: Fixed bugs in posix thread priority + resolution. Also added AIX priorities. Fix from + Laurent Vivier . (#82599) + * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index c0eebe2..d863951 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,9 @@ 2002-07-03 Sebastian Wilhelmi + * configure.in: Fixed bugs in posix thread priority + resolution. Also added AIX priorities. Fix from + Laurent Vivier . (#82599) + * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index c0eebe2..d863951 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,9 @@ 2002-07-03 Sebastian Wilhelmi + * configure.in: Fixed bugs in posix thread priority + resolution. Also added AIX priorities. Fix from + Laurent Vivier . (#82599) + * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index c0eebe2..d863951 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2002-07-03 Sebastian Wilhelmi + * configure.in: Fixed bugs in posix thread priority + resolution. Also added AIX priorities. Fix from + Laurent Vivier . (#82599) + * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index c0eebe2..d863951 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2002-07-03 Sebastian Wilhelmi + * configure.in: Fixed bugs in posix thread priority + resolution. Also added AIX priorities. Fix from + Laurent Vivier . (#82599) + * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c0eebe2..d863951 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2002-07-03 Sebastian Wilhelmi + * configure.in: Fixed bugs in posix thread priority + resolution. Also added AIX priorities. Fix from + Laurent Vivier . (#82599) + * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise diff --git a/configure.in b/configure.in index a528c57..c5056d5 100644 --- a/configure.in +++ b/configure.in @@ -1480,13 +1480,20 @@ if test x"$have_threads" != xno; then [Have function pthread_attr_setstacksize])], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for minimal/maximal thread priority) - if test x"$posix_priority_min" = xnone; then + if test x"$posix_priority_min" = x; then AC_EGREP_CPP(PX_PRIO_MIN,[#include PX_PRIO_MIN],,[ posix_priority_min=PX_PRIO_MIN posix_priority_max=PX_PRIO_MAX]) fi - if test x"$posix_priority_min" = xnone; then + if test x"$posix_priority_min" = x; then + # AIX + AC_EGREP_CPP(PTHREAD_PRIO_MIN,[#include + PTHREAD_PRIO_MIN],,[ + posix_priority_min=PTHREAD_PRIO_MIN + posix_priority_max=PTHREAD_PRIO_MIN]) + fi + if test x"$posix_priority_min" = x; then AC_EGREP_CPP(PRI_OTHER_MIN,[#include PRI_OTHER_MIN],,[ posix_priority_min=PRI_OTHER_MIN -- 2.7.4