glib/gthread
Sebastian Wilhelmi a3036a5bd2 Add a surrogate for thread priorities using PID niceness for systems with
2000-11-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Add a surrogate for thread priorities using PID
	niceness for systems with no thread priorities and different PIDs
	for threads of the same process (most notably: Linux). Define
	G_THREAD_USE_PID_SURROGATE in that case, as used by
	gthread-posix.c. Also make the system thread bigger by
	sizeof (long) to contain the thread's PID.

	* gfileutils.c: Include stdlib.h for mkstemp prototype.

	* gthread.c: Add priority range checks to the affected functions.

	* gthreadpool.c: Remove unused variable.

	* gthread-impl.c, gthread-posix.c, gthread-solaris.c: Removed
	g_thread_map_priority function in favour of the
	g_thread_priority_map array.  Initialize the array with
	PRIORITY_{...}_VALUE, if available and interpolate beetween the
	bounds if .._NORMAL_.. and .._HIGH_.. are not available.

	* gthread-posix.c: If we should use the PID niceness as a
	surrogate for thread priorities (G_THREAD_USE_PID_SURROGATE is
	defined), then disable normal priority handling and use PIDs and
	setpriority() instead. Depends on the thread to write its PID into
	the place after the thread id right after thread creation.
2000-11-21 15:27:44 +00:00
..
.cvsignore .cvsignore updates 2000-10-12 14:28:39 +00:00
ChangeLog Add a surrogate for thread priorities using PID niceness for systems with 2000-11-21 15:27:44 +00:00
gthread-impl.c Add a surrogate for thread priorities using PID niceness for systems with 2000-11-21 15:27:44 +00:00
gthread-none.c Add G_MUTEX_SIZE as needed for gthread-impl.c 2000-11-02 13:04:16 +00:00
gthread-posix.c Add a surrogate for thread priorities using PID niceness for systems with 2000-11-21 15:27:44 +00:00
gthread-solaris.c Add a surrogate for thread priorities using PID niceness for systems with 2000-11-21 15:27:44 +00:00
gthread.def Added missing gthread/gthread.def file. Incremented version numbers 1999-01-17 11:11:39 +00:00
gthread.rc.in Move to corresponding subdirectories. 2000-02-07 21:22:30 +00:00
Makefile.am Add @GLIB_DEBUG_FLAGS@ to INCLUDES for accessing -DG_ENABLE_DEBUG as 2000-10-25 10:58:46 +00:00
makefile.mingw.in Revamp to be like makefile.mingw.in, make the MSVC build actually work 2000-10-06 21:32:59 +00:00
makefile.msc.in Revamp to be like makefile.mingw.in, make the MSVC build actually work 2000-10-06 21:32:59 +00:00