e3d96c2fb2
Patch from chs@. Comment explaining the story by me. This patch may not be optimal -- maybe it would be better in pthread__init, or better for rtld to call _lwp_unpark after _lwp_park in the contened case -- but we've tested this version and it's annoying to reproduce, so let's take this version and worry about testing improvements later. |
||
---|---|---|
.. | ||
arch | ||
Makefile | ||
README | ||
TODO | ||
affinity.3 | ||
call_once.3 | ||
call_once.c | ||
cnd.3 | ||
cnd.c | ||
mtx.3 | ||
mtx.c | ||
pthread.3 | ||
pthread.c | ||
pthread.h | ||
pthread_attr.3 | ||
pthread_attr.c | ||
pthread_attr_get_np.3 | ||
pthread_attr_getdetachstate.3 | ||
pthread_attr_getguardsize.3 | ||
pthread_attr_getinheritsched.3 | ||
pthread_attr_getname_np.3 | ||
pthread_attr_getschedparam.3 | ||
pthread_attr_getscope.3 | ||
pthread_attr_getstack.3 | ||
pthread_attr_setcreatesuspend_np.3 | ||
pthread_barrier.3 | ||
pthread_barrier.c | ||
pthread_barrierattr.3 | ||
pthread_cancel.3 | ||
pthread_cancelstub.c | ||
pthread_cleanup_push.3 | ||
pthread_compat.c | ||
pthread_cond.3 | ||
pthread_cond.c | ||
pthread_condattr.3 | ||
pthread_create.3 | ||
pthread_curcpu_np.3 | ||
pthread_detach.3 | ||
pthread_equal.3 | ||
pthread_exit.3 | ||
pthread_getcpuclockid.3 | ||
pthread_getcpuclockid.c | ||
pthread_getname_np.3 | ||
pthread_getspecific.3 | ||
pthread_int.h | ||
pthread_join.3 | ||
pthread_key_create.3 | ||
pthread_kill.3 | ||
pthread_lock.c | ||
pthread_makelwp.h | ||
pthread_makelwp_netbsd.c | ||
pthread_misc.c | ||
pthread_mutex.3 | ||
pthread_mutex.c | ||
pthread_mutexattr.3 | ||
pthread_once.3 | ||
pthread_once.c | ||
pthread_queue.h | ||
pthread_rwlock.3 | ||
pthread_rwlock.c | ||
pthread_rwlockattr.3 | ||
pthread_schedparam.3 | ||
pthread_self.3 | ||
pthread_sigmask.3 | ||
pthread_specific.c | ||
pthread_spin.3 | ||
pthread_spin.c | ||
pthread_suspend_np.3 | ||
pthread_testcancel.3 | ||
pthread_tsd.c | ||
pthread_types.h | ||
res_state.c | ||
shlib_version | ||
thrd.3 | ||
thrd.c | ||
threads.3 | ||
threads.h | ||
tss.3 | ||
tss.c |
README
$NetBSD: README,v 1.7 2017/02/08 03:44:41 kamil Exp $ Due to limitations in the current pthread implementation, makecontext(3) and sigaltstack(2) should not be used in programs which link against libpthread (whether threads are used or not). This has been noted in the makecontext(3), sigaltstack(2), and pthread(3) man pages.