mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
90f6cc9bf2
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.
116 lines
3.1 KiB
C
116 lines
3.1 KiB
C
/* GLIB - Library of useful routines for C programming
|
||
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
||
*
|
||
* This library is free software; you can redistribute it and/or
|
||
* modify it under the terms of the GNU Library General Public
|
||
* License as published by the Free Software Foundation; either
|
||
* version 2 of the License, or (at your option) any later version.
|
||
*
|
||
* This library is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
* Library General Public License for more details.
|
||
*
|
||
* You should have received a copy of the GNU Library General Public
|
||
* License along with this library; if not, write to the
|
||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||
* Boston, MA 02111-1307, USA.
|
||
*/
|
||
/* acconfig.h
|
||
This file is in the public domain.
|
||
|
||
Descriptive text for the C preprocessor macros that
|
||
the distributed Autoconf macros can define.
|
||
No software package will use all of them; autoheader copies the ones
|
||
your configure.in uses into your configuration header file templates.
|
||
|
||
The entries are in sort -df order: alphabetical, case insensitive,
|
||
ignoring punctuation (such as underscores). Although this order
|
||
can split up related entries, it makes it easier to check whether
|
||
a given entry is in the file.
|
||
|
||
Leave the following blank line there!! Autoheader needs it. */
|
||
|
||
|
||
/* Other stuff */
|
||
|
||
#undef ENABLE_MEM_CHECK
|
||
#undef ENABLE_MEM_PROFILE
|
||
|
||
#undef REALLOC_0_WORKS
|
||
|
||
#undef G_COMPILED_WITH_DEBUGGING
|
||
#undef G_THREADS_ENABLED
|
||
|
||
#undef GLIB_SIZEOF_GMUTEX
|
||
#undef GLIB_SIZEOF_PTHREAD_T
|
||
#undef GLIB_BYTE_CONTENTS_GMUTEX
|
||
#undef GLIB_BYTE_CONTENTS_GRECMUTEX
|
||
|
||
#undef HAVE_BROKEN_WCTYPE
|
||
#undef HAVE_DOPRNT
|
||
#undef HAVE_FLOAT_H
|
||
#undef HAVE_GETPWUID_R
|
||
#undef HAVE_GETPWUID_R_POSIX
|
||
#undef HAVE_LIMITS_H
|
||
#undef HAVE_LONG_DOUBLE
|
||
#undef HAVE_POLL
|
||
#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
|
||
#undef HAVE_PWD_H
|
||
#undef HAVE_PW_GECOS
|
||
#undef HAVE_SYS_PARAM_H
|
||
#undef HAVE_SYS_POLL_H
|
||
#undef HAVE_SYS_SELECT_H
|
||
#undef HAVE_SYS_TIME_H
|
||
#undef HAVE_SYS_TIMES_H
|
||
#undef HAVE_STRERROR
|
||
#undef HAVE_STRSIGNAL
|
||
#undef HAVE_UNISTD_H
|
||
#undef HAVE_VALUES_H
|
||
#undef HAVE_WCHAR_H
|
||
#undef HAVE_WCTYPE_H
|
||
|
||
#undef NO_FD_SET
|
||
#undef NO_SYS_ERRLIST
|
||
#undef NO_SYS_SIGLIST
|
||
#undef NO_SYS_SIGLIST_DECL
|
||
|
||
#undef SIZEOF_CHAR
|
||
#undef SIZEOF_SHORT
|
||
#undef SIZEOF_LONG
|
||
#undef SIZEOF_INT
|
||
#undef SIZEOF_VOID_P
|
||
|
||
#undef G_VA_COPY
|
||
#undef G_VA_COPY_AS_ARRAY
|
||
#undef G_HAVE___INLINE
|
||
#undef G_HAVE___INLINE__
|
||
#undef G_HAVE_INLINE
|
||
|
||
#undef GLIB_MAJOR_VERSION
|
||
#undef GLIB_MINOR_VERSION
|
||
#undef GLIB_MICRO_VERSION
|
||
#undef GLIB_INTERFACE_AGE
|
||
#undef GLIB_BINARY_AGE
|
||
|
||
#undef WIN32
|
||
#undef NATIVE_WIN32
|
||
|
||
#undef G_THREAD_SOURCE
|
||
#undef POSIX_MIN_PRIORITY
|
||
#undef POSIX_MAX_PRIORITY
|
||
#undef POSIX_YIELD_FUNC
|
||
|
||
#undef GLIB_NATIVE_BEOS
|
||
|
||
/* #undef PACKAGE */
|
||
/* #undef VERSION */
|
||
|
||
|
||
|
||
|
||
/* Leave that blank line there!! Autoheader needs it.
|
||
If you're adding to this file, keep in mind:
|
||
The entries are in sort -df order: alphabetical, case insensitive,
|
||
ignoring punctuation (such as underscores). */
|