Added the missing POSIX_NO_YIELD and POSIX_NO_PRIORITIES warning messages.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Fri, 17 Mar 2000 14:49:59 +0000 (14:49 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Fri, 17 Mar 2000 14:49:59 +0000 (14:49 +0000)
commit5e7134375eea0543c998715e03a458411906e89c
tree12f183c13cef26db56acf50f98507cd01094f337
parent3540769b17a4ab0a32544e3d1e78f3b9d00aa0bb
Added the missing POSIX_NO_YIELD and POSIX_NO_PRIORITIES warning messages.

2000-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Added the missing POSIX_NO_YIELD and
POSIX_NO_PRIORITIES warning messages.

* configure.in: Use AC_TRY_RUN instead of AC_TRY_LINK, to test for
real thread support. On solaris pthread_create can be linked to
even in -lc, but it doesn't work then.

* configure.in: Don't use priorities for threads, when the
minimal/maximal priorities couldn't be determined at configure
time.

* configure.in, gthread.c: Always define GSystemThread in
glibconfig.h to represent a system thread.

* configure.in: Do not use native recursive threads, when
possibe. We use some features, that they do not expose (namely the
depth counter).

* glib.h, gthread.c: Redefined GStaticRecMutex. The functions are
now implemented in a different way, which should be way
faster. Alsothere are now functions g_static_rec_mutex_unlock_full
and g_static_rec_mutex_lock_full to leave/enter a recursive mutex
completly.

* gthread.c (g_thread_self): Do not test the system_thread to be
non-zero to speed things up.

* gthread.c (g_mutex_init): Therefore set the system_thread of the
main thread here.

* tests/thread-test.c: Rerun all tests once again, but this time
we fool the system into thinking, that the available thread system
is not native, but userprovided.

* gthread/gthread-posix.c: Don't use priorities for threads,
when the minimal/maximal priorities couldn't be determined at
configure time.

* gthread/gthread-posix.c: Don't check for errors, when
setting the scope of a tread to system, as some posix
implementations can't do that and we don't want the thing to
fail because of that.
17 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
glib.h
glib/glib.h
glib/gthread.c
gthread.c
gthread/ChangeLog
gthread/gthread-posix.c
gthread/gthread-solaris.c
tests/thread-test.c