CVS commit: [netbsd-3] src/lib/libpthread
James Chacon <jmc <at> netbsd.org>
2005-11-01 20:01:31 GMT
Module Name: src
Committed By: jmc
Date: Tue Nov 1 20:01:31 UTC 2005
Modified Files:
src/lib/libpthread [netbsd-3]: pthread_rwlock.c
Log Message:
Pullup revs 1.12-1.13 (requested by chs in ticket #926)
In pthread_mutex_lock_slow(), pthread_rwlock_timedrdlock() and sem_wait(),
call pthread__start() if it hasn't already been called. this avoids
an internal assertion from the library if these routines are used
before any threads are created and they need to sleep.
PR#20256, PR#24241, PR#25722, PR#26096
Fix the interaction between sigtimedwait() and pthread_kill(),
both waking up a sleeping thread and avoiding going to sleep if
a signal is already pending. PR#30348
In pthread_kill() and pthread_suspend_np(), return without doing anything
f the target thread is a zombie.
In all the functions that didn't do so already, verify a pthread_t before
dereferencing it (under #ifdef ERRORCHECK, since these checks are not
mandated by the standard).
Starting the pthread library (ie. calling pthread__start()) before
any threads are created turned out to be not such a good idea.
there are stronger requirements on what has to work in a forked child
while a process is still single-threaded. so take all that stuff
(Continue reading)