openldap/libraries/libldap_r
Hallvard Furuseth 8a92825225 Protect thread_keys[] with ldap_pvt_thread_pool_mutex, except in
ldap_pvt_thread_pool_purgekey() which may only be called during pauses.

Thus, also wait for pauses to finish before accessing thread_keys in
ldap_int_thread_pool_wrapper().  This may prevent pending tasks from
being started when a pause had been requested, which seems to have been
possible.  If that was a feature, we can split ltp_pause==1 in 2 states:
in pause (causes wait), and pause requested.

Also move 'thread_keys[].id = <thread id>' from pool_submit to
pool_wrapper.  Until pool_wrapper set the ctx as well, thread context
lookup would just return NULL anyway.
2007-05-09 21:38:28 +00:00
..
ldap_thr_debug.h happy new year 2007-01-02 20:00:42 +00:00
Makefile.in more on ITS#4799 2007-01-10 01:18:52 +00:00
rdwr.c happy new year 2007-01-02 20:00:42 +00:00
rmutex.c happy new year 2007-01-02 20:00:42 +00:00
rq.c happy new year 2007-01-02 20:00:42 +00:00
thr_cthreads.c happy new year 2007-01-02 20:00:42 +00:00
thr_debug.c Don't complain if detached threads exit after ldap_debug_thread_destroy(). 2007-05-09 19:21:08 +00:00
thr_lwp.c happy new year 2007-01-02 20:00:42 +00:00
thr_nt.c happy new year 2007-01-02 20:00:42 +00:00
thr_posix.c ITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup 2007-05-09 18:17:10 +00:00
thr_pth.c happy new year 2007-01-02 20:00:42 +00:00
thr_stub.c happy new year 2007-01-02 20:00:42 +00:00
thr_thr.c happy new year 2007-01-02 20:00:42 +00:00
threads.c happy new year 2007-01-02 20:00:42 +00:00
tpool.c Protect thread_keys[] with ldap_pvt_thread_pool_mutex, except in 2007-05-09 21:38:28 +00:00