source code for proposed glib-thread-extension.
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: GTK+ development list <gtk-devel-list redhat com>
- Subject: source code for proposed glib-thread-extension.
- Date: Wed, 04 Nov 1998 18:03:55 +0100
Hi
After the overwhelming respons to my proposal yesterday =-) I've now
completed the lib (only one small TODO is left.) and will now attach it
here for your review. Its a patch and a tar-file. The patch is against
CVS-glib and the tar file should be unpacked in the glib-directory. The
whole thing does compile on solaris and should compile on every system
with a posix thread implementation. There also is a test program, that
implements the well known dining philosophers problem. There you can see
most of the concepts of this lib working. (at least its working here on
solaris)
Bye for now
Sebastian
--
+--------------============####################============--------------+
| Sebastian Wilhelmi, Institute for Computer Design and Fault Tolerance, |
| University of Karlsruhe; Building 20.20, Room 263, D-76128 Karlsruhe |
| mail: wilhelmi@ira.uka.de; fax: +49 721 370455; fon: +49 721 6084353 |
+-----------------> http://goethe.ira.uka.de/~wilhelmi <-----------------+
Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/glib/Makefile.am,v
retrieving revision 1.13
diff -u -r1.13 Makefile.am
--- Makefile.am 1998/11/01 01:32:53 1.13
+++ Makefile.am 1998/11/04 16:37:20
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
# build . first, then SUBDIRS
-SUBDIRS = gmodule docs
+SUBDIRS = gmodule gthread docs
all-recursive-am: all-am
# alpha `automake' supports this better
#SUBDIRS = . gmodule docs
Index: configure.in
===================================================================
RCS file: /cvs/gnome/glib/configure.in,v
retrieving revision 1.24
diff -u -r1.24 configure.in
--- configure.in 1998/11/02 07:04:36 1.24
+++ configure.in 1998/11/04 16:37:25
@@ -506,6 +506,20 @@
AC_SUBST(G_MODULE_HAVE_DLERROR)
AC_SUBST(G_MODULE_NEED_USCORE)
+dnl ***********************
+dnl *** g_thread checks ***
+dnl ***********************
+dnl for now only check, if posix threads are there
+
+AC_CHECK_LIB(pthread,pthread_cond_init,
+ G_THREAD_POSIX=1
+ G_THREAD_LIBS=-lpthread,
+ G_THREAD_POSIX=
+ G_THREAD_LIBS=
+ )
+AC_SUBST(G_THREAD_POSIX)
+AC_SUBST(G_THREAD_LIBS)
+
AC_OUTPUT_COMMANDS([
## Generate `glibconfig.h' in two cases
@@ -810,6 +824,7 @@
glib-config
gmodule/gmoduleconf.h
gmodule/Makefile
+gthread/Makefile
docs/Makefile
],[case "$CONFIG_FILES" in
*glib-config*)chmod +x glib-config;;
gthread.tar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]