glibc/nptl/sysdeps/pthread
Ulrich Drepper 6162364368 Update.
2003-06-22  Ulrich Drepper  <drepper@redhat.com>

	* pthreadP.h (__pthread_mutex_init_internal): Mark hidden.
	(__pthread_mutex_lock_internal): Likewise.
	(__pthread_mutex_unlock_internal): Likewise.
	(__pthread_mutex_unlock_usercnt): Declare.
	* pthread_mutex_destroy.c: Always fail if used in any way.
	* pthread_mutex_init.c: Update comment.
	* pthread_mutex_lock.c: If NO_INCR is not defined adjust __nusers.
	* pthread_mutex_timedlock.c: Adjust __nusers.
	* pthread_mutex_trylock.c: Adjust __nusers.
	* pthread_mutex_unlock.c: Old code is in __pthread_mutex_unlock_usercnt
	and public interfaces are wrapper with pass additional parameter.
	__pthread_mutex_unlock_usercnt does not adjust __nusers if second
	parameter zero.
	* tst-mutex8.c: New file.
	* Makefile (tests): Add tst-mutex8.
	* sysdeps/pthread/pthread_cond_timedwait.c: Call
	__pthread_mutex_unlock_usercnt.
	* sysdeps/pthread/pthread_cond_wait.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
	* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
	* sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Define NO_INCR.
	* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
	Add __nusers.
	* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.

	* pthread_mutex_lock.c: Don't store THREAD_ID in __owner, use TID.
	* pthread_mutex_timedlock.c: Likewise.
	* pthread_mutex_trylock.c: Adjust __nusers.
	* pthread_mutex_unlock.c: Compare with TID not THREAD_ID.
	* tst-mutex9.c: New file.
	* Makefile (tests): Add tst-mutex9.
	* sysdeps/i386/tls.h: Remove THREAD_ID definition.
	* sysdeps/ia64/tls.h: Likewise.
	* sysdeps/powerpc/tls.h: Likewise.
	* sysdeps/s390/tls.h: Likewise.
	* sysdeps/sh/tls.h: Likewise.
	* sysdeps/x86_64/tls.h: Likewise.
	* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_mutex_t):
	Change type of __owner.
	* sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise.
2003-06-22 23:55:27 +00:00
..
bits Update. 2003-04-12 00:58:26 +00:00
allocalim.h Initial revision 2002-11-26 22:50:54 +00:00
configure Update. 2003-04-12 00:58:26 +00:00
configure.in Update. 2003-04-12 00:58:26 +00:00
createthread.c Update. 2003-06-17 08:58:31 +00:00
flockfile.c Update 2002-12-18 23:29:41 +00:00
ftrylockfile.c Update. 2002-12-16 22:17:11 +00:00
funlockfile.c Update. 2002-12-16 22:17:11 +00:00
librt-cancellation.c Update. 2003-06-15 21:22:26 +00:00
list.h Update. 2002-12-31 20:46:11 +00:00
Makefile Update. 2003-06-15 21:22:26 +00:00
posix-timer.h Bump to 0.46. 2003-06-14 16:47:07 +00:00
pt-initfini.c Update. 2002-12-31 09:36:52 +00:00
pthread_barrier_wait.c Update. 2003-02-05 09:54:24 +00:00
pthread_cond_broadcast.c Update. 2003-05-29 05:28:16 +00:00
pthread_cond_signal.c Update. 2003-05-26 02:47:39 +00:00
pthread_cond_timedwait.c Update. 2003-06-22 23:55:27 +00:00
pthread_cond_wait.c Update. 2003-06-22 23:55:27 +00:00
pthread_getcpuclockid.c Update. 2003-02-21 10:00:33 +00:00
pthread_once.c Initial revision 2002-11-26 22:50:54 +00:00
pthread_rwlock_rdlock.c Update. 2003-06-05 19:31:57 +00:00
pthread_rwlock_timedrdlock.c Update. 2003-06-05 19:31:57 +00:00
pthread_rwlock_timedwrlock.c Update. 2003-06-05 19:31:57 +00:00
pthread_rwlock_unlock.c Update. 2003-02-27 10:32:38 +00:00
pthread_rwlock_wrlock.c Update. 2003-06-05 19:31:57 +00:00
pthread_sigmask.c Update. 2003-04-21 07:39:20 +00:00
pthread_spin_destroy.c Update. 2002-11-28 00:53:12 +00:00
pthread_spin_init.c 2003-03-17 Roland McGrath <roland@redhat.com> 2003-03-17 11:22:52 +00:00
pthread_spin_unlock.c 2003-03-17 Roland McGrath <roland@redhat.com> 2003-03-17 11:22:52 +00:00
pthread-functions.h Update. 2003-04-12 00:58:26 +00:00
pthread.h Update. 2003-06-08 05:28:14 +00:00
sigaction.c Update. 2003-04-21 07:39:20 +00:00
sigfillset.c Update. 2003-04-21 07:48:10 +00:00
sigprocmask.c Update. 2003-04-21 07:39:20 +00:00
Subdirs Initial revision 2002-11-26 22:50:54 +00:00
tcb-offsets.h Update. 2002-12-28 22:19:04 +00:00
timer_create.c Update. 2003-05-31 07:50:12 +00:00
timer_delete.c Initial revision 2002-11-26 22:50:54 +00:00
timer_getoverr.c Initial revision 2002-11-26 22:50:54 +00:00
timer_gettime.c Initial revision 2002-11-26 22:50:54 +00:00
timer_routines.c Fix comment. 2003-03-31 18:43:29 +00:00
timer_settime.c Initial revision 2002-11-26 22:50:54 +00:00
tst-timer.c Update. 2003-03-25 01:14:36 +00:00