mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-07 09:53:39 +02:00
1999-06-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in, acglib.m4, acconfig.h, glib.h, gthread.c: Completed the thread support in GLib. Thread creation, prioritizing threads, yielding, joining threads as well as reader/writer locks and recursive mutexes are now in place. Please test heavily on your platform. It is so far tested on Linux/i386/pthreads, Solaris/Sparc/pthreads and Solaris/Sparc/solaristhreads. * gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for thread safe sleeping. (sleep() is not MT-safe at all!) * gutils.c: Avoid compiler warning. * tests/Makefile.am, tests/thread-test.c: New program to test some aspects of the thread implementation. * gthread.c, Makefile.am: Renamed from gmutex.c to reflect the change of content. * configure.in: Purged all appearances of nspr. * gthread/gthread-posix.c, gthread-solaris.c: Added the native implementations for the GLib's extended thread support. * gthread/gthread-nspr.c: Removed for good. NSPR is nothing we would want to build upon. * gthread/gthread.c: Renamed to gthread-impl.c to avoid confusion with ../gthread.c (Formerly known as the file called gmutex.c) * gthread/testgthread.c: Removed. The new and much extended tests are in ../tests/thread-test.c. * gthread/Makefile.am: Changed to reflect the changes above.
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
|
|
INCLUDES = -I$(top_srcdir) @GLIB_DEBUG_FLAGS@
|
|
|
|
EXTRA_DIST = \
|
|
makefile.msc \
|
|
makefile.cygwin
|
|
|
|
TESTS = \
|
|
array-test \
|
|
date-test \
|
|
dirname-test \
|
|
hash-test \
|
|
list-test \
|
|
node-test \
|
|
queue-test \
|
|
rand-test \
|
|
relation-test \
|
|
slist-test \
|
|
stack-test \
|
|
string-test \
|
|
strfunc-test \
|
|
tree-test \
|
|
type-test \
|
|
thread-test
|
|
|
|
noinst_PROGRAMS = $(TESTS)
|
|
|
|
array_test_LDADD = $(top_builddir)/libglib.la
|
|
date_test_LDADD = $(top_builddir)/libglib.la
|
|
dirname_test_LDADD = $(top_builddir)/libglib.la
|
|
hash_test_LDADD = $(top_builddir)/libglib.la
|
|
list_test_LDADD = $(top_builddir)/libglib.la
|
|
node_test_LDADD = $(top_builddir)/libglib.la
|
|
queue_test_LDADD = $(top_builddir)/libglib.la
|
|
rand_test_LDADD = $(top_builddir)/libglib.la
|
|
relation_test_LDADD = $(top_builddir)/libglib.la
|
|
slist_test_LDADD = $(top_builddir)/libglib.la
|
|
stack_test_LDADD = $(top_builddir)/libglib.la
|
|
string_test_LDADD = $(top_builddir)/libglib.la
|
|
strfunc_test_LDADD = $(top_builddir)/libglib.la
|
|
tree_test_LDADD = $(top_builddir)/libglib.la
|
|
type_test_LDADD = $(top_builddir)/libglib.la
|
|
thread_test_LDADD = $(top_builddir)/libglib.la \
|
|
$(top_builddir)/gthread/libgthread.la @G_THREAD_LIBS@
|
|
|
|
makefile.msc: $(top_builddir)/config.status $(top_srcdir)/tests/makefile.msc.in
|
|
cd $(top_builddir) && CONFIG_FILES=tests/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
makefile.cygwin: $(top_builddir)/config.status $(top_srcdir)/tests/makefile.cygwin.in
|
|
cd $(top_builddir) && CONFIG_FILES=tests/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|