Howard Chu
45ff842542
Plug one-time leaks
2014-06-04 02:23:18 -07:00
Kurt Zeilenga
5c878c1bf2
Happy new year (belated)
2014-01-25 05:21:25 -08:00
Howard Chu
448b5269a8
Fix uninit'd poolqs in prev commit
2013-09-03 17:29:32 -07:00
Howard Chu
0ef9e6107b
More for threadpool queues
...
Allow dynamic reconfig
2013-09-03 15:06:37 -07:00
Howard Chu
50ab5bb1ed
Cleanup comments in prev commit
2013-08-19 14:25:13 -07:00
Howard Chu
0c86184bae
More fixes for prev commit
2013-08-19 13:54:17 -07:00
Howard Chu
eaa3469736
Fix 34f832faee
...
Lock ordering issues
2013-08-19 04:28:05 -07:00
Howard Chu
34f832faee
Multiple queues per threadpool
2013-08-16 19:04:49 -07:00
Kurt Zeilenga
0fd1bf30b8
Happy New Year
2013-01-02 10:22:57 -08:00
Howard Chu
de7f6d38fa
ITS#7115 add missing pool_idle/unidle stubs
2012-02-27 20:42:29 -08:00
Hallvard Furuseth
999ff398d6
thr_debug: tweak debug_already_initialized().
...
With gcc, declare debug_already_initialized() as 'noinline' so
its deliberate uninitialized access stays inside the function and
valgrind can ignore it there.
2012-01-24 01:45:51 +01:00
Hallvard Furuseth
23f3657807
ITS#7115: Tighten ldap_pvt_thread_pool_unidle().
...
Only wait out already-started pauses, not pause reqests.
ltp_pause now says whether a pause is requested or has started.
This reduces the chance that slapd:send_ldap_ber() will start
a pause in the middle of an operation.
2012-01-24 00:47:48 +01:00
Hallvard Furuseth
fa7575666f
ITS#7115 Re-fix tpool.c (idle/unidle)
2012-01-13 15:38:12 +01:00
Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -08:00
Howard Chu
68ee165fb5
ITS#7115 blocked writers should not interfere with pool pause
2011-12-21 01:24:23 -08:00
Howard Chu
f8a5ce4a6e
ITS#6870 move ldif.c and fetch.c from liblutil to libldap
2011-03-24 06:49:04 +00:00
Kurt Zeilenga
966cef8c9a
Happy New Year
2011-01-05 00:42:37 +00:00
Kurt Zeilenga
d3b51f2614
LDAP "Verify Credentials" operation
...
Client library implementation only
2010-12-14 20:58:02 +00:00
Howard Chu
1c9853c674
ITS#6669 remove obsolete SunOS4 LWP support
2010-10-12 11:02:59 +00:00
Howard Chu
0890a89c37
ITS#6669 remove obsolete SunOS4 LWP support
2010-10-12 10:26:31 +00:00
Pierangelo Masarati
6cee32cb28
more about ITS#6194
2010-04-20 05:47:09 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Hallvard Furuseth
02e165258c
Might help ITS#6145: change while to do-while, to make visible that the
...
loop saving malloced data is run at least once.
2009-07-31 00:05:32 +00:00
Howard Chu
093fed660d
ITS#6188 add stub for ldap_pvt_thread_pool_retract()
2009-06-25 23:15:38 +00:00
Hallvard Furuseth
671bed5270
Cleanup & slight speedup (no real change):
...
Remove '#if 0 / broken code / #endif. Rearrange pool_wrapper() to avoid
decrement-increment(ltp_active_count) when more tasks available.
2009-06-12 20:46:36 +00:00
Hallvard Furuseth
461cb6b7ca
Update last commit: avoid LDAP_STAILQ_REMOVE in ldap_pvt_thread_pool_retract
2009-06-12 19:32:53 +00:00
Howard Chu
39c9b1ab25
Fix prev commit, note *task* not *thread* ...
2009-06-11 05:02:58 +00:00
Howard Chu
23783a9164
Add ldap_pvt_thread_pool_retract() to cancel pending threads
2009-06-11 04:46:04 +00:00
Howard Chu
7aa5ae49ca
Modular TLS
2009-01-27 01:01:41 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +00:00
Ralf Haferkamp
5977f20127
Avoid locking up slapd when paused during shutdown (ITS#5841), reverting
...
r1.81
2008-12-09 10:57:15 +00:00
Howard Chu
5a8954f9de
ITS#5768 - add deref.
2008-11-25 04:43:38 +00:00
Howard Chu
f7484f78e6
ITS#5369 SASL/GSSAPi refactoring from Stefan Metzmacher <metze@samba.org>
...
and Rafal Szczeniak <mimir@samba.org>, with minor cleanups
2008-10-09 10:51:28 +00:00
Pierangelo Masarati
7e3c9a07e9
add client API for assertion control (ITS#5560)
2008-06-14 17:49:47 +00:00
Howard Chu
ce27143ce7
ITS#5519 add missing stubs
2008-05-20 11:23:19 +00:00
Hallvard Furuseth
00be565264
ITS#5407 cleanup (make pool_pause & pool_pausecheck wrappers for handle_pause)
2008-03-10 13:21:24 +00:00
Howard Chu
a287573d2d
ITS#5407 more checks for pool pausing
2008-03-08 23:51:07 +00:00
Hallvard Furuseth
7859063553
ITS#5364 cleanup
...
Fix rev 1.91 patch: Reset ltp_pending_count when flushing ltp_pending_list.
Remove flush_pending_list() again and the now-unnecessary 2nd call to it.
Help the compiler a little.
Move ltp_work_list in case it makes a difference for caching.
Move mutex unlock in pool_destroy() to make concurrency debuggers happier.
2008-02-11 15:49:52 +00:00
Hallvard Furuseth
650aaee3a5
ITS#5364, reduce work with ltp_mutex locked:
...
Negate ltp_open_count when paused, avoids an ltp_pause test in pool_submit().
2008-02-10 18:16:44 +00:00
Hallvard Furuseth
8afd0b05c1
ITS#5364: introduce ltp_work_list, drop 1st ltp_pause loop in pool_wrapper().
2008-02-10 17:55:13 +00:00
Hallvard Furuseth
fe86a1cbe5
ITS#5364: maintain value ltp_vary_open_count
2008-02-10 17:38:32 +00:00
Hallvard Furuseth
ee73fca523
ITS#5364, reduce work with ltp_mutex locked:
...
Replace ltp_state with ltp_finishing. Drop state
LDAP_INT_THREAD_POOL_STOPPING, flush pending list instead.
ltp_max_pending = default value instead of 0, and negative when finishing.
2008-02-10 17:28:20 +00:00
Hallvard Furuseth
6dd87bb83f
ITS#5364, thread pool efficiency:
...
Add ldap_pvt_thread_pool_pausing(): pause check for slapd without locking.
Make counters int instead of long; INT_MAX pending tasks is enough.
Nitpick cleanup: goto failure instead of if() to not-failure in _submit().
2008-02-10 16:15:30 +00:00
Hallvard Furuseth
cd63a0c43b
Warning cleanup: function ptr <=> void* at ldap_pvt_thread_pool_<set/get>key()
2008-01-11 06:07:43 +00:00
Hallvard Furuseth
ac914f96a0
#include <signal.h> for pthread_kill()
2008-01-10 16:24:07 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Pierangelo Masarati
30f401c628
rename ldap_pvt_thread_pool_setkey_x() to ldap_pvt_thread_pool_setkey() (as part of ITS#5309)
2008-01-07 21:35:03 +00:00
Hallvard Furuseth
4a2cda3cff
ITS#5309: complete the addition of ldap_pvt_thread_pool_setkey_x()
2008-01-07 20:04:46 +00:00
Pierangelo Masarati
622c4d3884
new ldap_pvt_thread_pool_setkey API
2007-12-29 18:14:54 +00:00
Quanah Gibson-Mount
afcc7d9e83
ITS#4982 libldap_r threaded library linking
2007-12-21 22:18:35 +00:00