summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-06-20 22:20:43 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-06-20 22:20:43 +0000
commitbe80f9a106b1560447a7312480045960e521e728 (patch)
tree458f96576bb620cba653da790774a9b82f4391d3 /tests
parent5452cb1518289b10c83d6065ca239f8ecf0e9f6c (diff)
downloadglib-be80f9a106b1560447a7312480045960e521e728.tar.gz
Update the pthreads snapshot version we want. Advice how to hand-expand
* README.win32: Update the pthreads snapshot version we want. Advice how to hand-expand the makefile.*.in files. * config.h.win32.in: Define values needed by Sebastian Wilhelmi's new thread stuff. * glib.def: Add new functions. * glibconfig.h.win32.in: Update the pthreads snapshot version. Fix typo. * gthread.c: Include config.h, guard inclusion of unistd.h. When using gcc on Win32, g_thread_functions_for_glib_use must be marked for export here, too. * gtimer.c: Implement g_usleep on native Win32 using Sleep (which only has millisecond granularity, though). * makefile.cygwin.in * makefile.msc.in: Update pthreads snapshot version. File name changes. Remove testgthread. * tests/makefile.cygwin.in * tests/makefile.msc.in: Add thread-test. Link with gthread lib. * gthread-posix.c: Guard pthread_attr_setscope call with test for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined in a <pthread.h> that supports that feature.
Diffstat (limited to 'tests')
-rw-r--r--tests/makefile.cygwin.in3
-rw-r--r--tests/makefile.msc.in3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/makefile.cygwin.in b/tests/makefile.cygwin.in
index 6db6bc964..5e944a173 100644
--- a/tests/makefile.cygwin.in
+++ b/tests/makefile.cygwin.in
@@ -27,6 +27,7 @@ TESTS = \
stack-test.exe \
string-test.exe \
strfunc-test.exe\
+ thread-test.exe \
tree-test.exe \
type-test.exe
@@ -36,7 +37,7 @@ all : $(TESTS)
.c.exe :
$(CC) $(CFLAGS) -c $<
- $(CC) $(CFLAGS) -o $@ $< -L.. -lglib-$(GLIB_VER)
+ $(CC) $(CFLAGS) -o $@ $< -L.. -lglib-$(GLIB_VER) -lgthread-$(GLIB_VER)
check: all
@for P in $(TESTS) ; do echo $$P; ./$$P; done
diff --git a/tests/makefile.msc.in b/tests/makefile.msc.in
index 8cbf3e378..1a91929f7 100644
--- a/tests/makefile.msc.in
+++ b/tests/makefile.msc.in
@@ -29,6 +29,7 @@ TESTS = \
stack-test.exe \
string-test.exe \
strfunc-test.exe\
+ thread-test.exe \
tree-test.exe \
type-test.exe
@@ -36,7 +37,7 @@ all : $(TESTS)
.c.exe :
$(CC) $(CFLAGS) -c $<
- $(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
+ $(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib ..\gthread-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
check: all
for %p in ($(TESTS)) do %p