Hallvard Furuseth
123948bd5e
Add thread debugging wrapper thr_debug.c and ldap_thr_debug.h in libldap_r/,
...
enabled with LDAP_THREAD_DEBUG (cpp macro and environment variable):
Move any ldap_pvt_* definitions from ldap_int_thread.h to ldap_pvt_thread.h.
#define ldap_int_thread_equal/ldap_pvt_thread_equal instead of tpool.c:TID_EQ.
Define some ldap_debug_*_t types, and LDAP_UINTPTR_T, in ldap_int_thread.h.
ldap_int_thread.h/ldap_pvt_thread.h can now be included multiple times, giving
different results depending on whether libldap_r/ldap_thr_debug.h was included.
Add some cleanup and some preprocessor hacks.
#define LDAP_THREAD*_IMPLEMENTATION in libldap_r/*.c, used by ldap_thr_debug.h.
Add PTHREAD_MUTEX_ERRORCHECK/PTHREAD_MUTEX_ERRORCHECK_NP in thr_posix.c.
2005-09-17 23:28:08 +00:00
Howard Chu
6be50f1b0f
ITS#4006 add stub for ldap_pvt_thread_pool_context_reset()
2005-09-06 22:11:26 +00:00
Pierangelo Masarati
6aa5b4f775
address ITS#3925; please test
2005-09-01 01:59:36 +00:00
Pierangelo Masarati
fe4b006e17
wait also if PAUSING; silence warnings and improve readability with gdb
2005-09-01 01:54:00 +00:00
Howard Chu
1f78e2b831
ITS#3961 better fix - provide a context for the main thread. The context
...
must be reset by the caller to clear out temp allocations etc.
2005-08-23 04:12:57 +00:00
Howard Chu
468112e2ba
ITS#3961 provide ldap_pvt_thread_pool_fake_context_init/destroy, don't
...
use arbitrary context pointers.
2005-08-23 03:25:21 +00:00
Howard Chu
6754d025f2
ITS#3847 silence warnings
2005-07-11 10:39:32 +00:00
Hallvard Furuseth
a20b19cc9e
ISO C chokes on comma at end of enum list
2005-07-06 08:13:50 +00:00
Howard Chu
5f46aa4d3b
ITS#3760 add missing NO_THREADS stubs
2005-06-03 22:08:31 +00:00
Kurt Zeilenga
be097fc8cd
Add ldap_turn(3) and ldap_turn_s(3).
2005-05-04 20:24:48 +00:00
Howard Chu
2d06c4fe2d
Freshly inserted tasks should be at head of queue and run immediately
2005-04-23 16:56:37 +00:00
Howard Chu
b978e77932
Add task names to runqueue entries
2005-04-23 00:27:57 +00:00
Howard Chu
3f20324ed0
Add ldap_pvt_thread_pool_purgekey to free all instances of key across
...
all threads.
2005-04-22 22:27:29 +00:00
Howard Chu
2dec29f265
Change ldap_pvt_runqueue_insert to return new task pointer
2005-04-22 14:37:59 +00:00
Howard Chu
dd646eb734
Added ldap_pvt_runqueue_find()
2005-04-19 14:40:30 +00:00
Howard Chu
5608206da2
Fix LDAP_PVT_THREAD_STACK_SIZE, automatically scale up on 64 bit machines
2005-04-15 06:18:18 +00:00
Howard Chu
1b777e0ab3
Added ldap_pvt_thread_pool_pause/resume
2005-03-07 21:02:31 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Kurt Zeilenga
e0a9ea2f50
Move MSVC port to the Attic
2004-09-04 04:37:41 +00:00
Howard Chu
0305199518
Additional debug tracking...
2004-07-03 16:25:30 +00:00
Jong Hyuk Choi
a1308f8dfa
syncrepl retry code fix for correct timing
2004-06-21 07:03:49 +00:00
Jong Hyuk Choi
763f8c76ee
syncrepl retry-on-error code
2004-06-18 05:04:03 +00:00
Howard Chu
cee3acea09
Fix prev commit
2004-03-17 09:59:03 +00:00
Howard Chu
650837742a
Restore NT4 compatibility, avoid W2K-only API
2004-03-17 05:06:04 +00:00
Pierangelo Masarati
c9fae6c942
fix file name
2004-03-16 18:02:38 +00:00
Kurt Zeilenga
647df2b9cb
Start of client-side LDAP tranactions (non-working)
...
and lots of cleanup (hence the commit)
(ldapmodify will need much more work for transactions)
2004-03-14 23:32:00 +00:00
Howard Chu
3810fa18d8
Added PasswordPolicy control
2004-03-12 21:22:32 +00:00
Howard Chu
f3f78e8a1f
ITS#2997 change MAXTHREADS to LDAP_MAXTHR
2004-03-04 15:35:29 +00:00
Howard Chu
a6b1dfd1c8
Fix ldap_pvt_thread_self, GetCurrentThread() returns a constant, not a
...
unique value.
2004-01-15 09:59:11 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Kurt Zeilenga
f9ba11f543
Add acknowledgements
2003-11-27 00:33:55 +00:00
Jong Hyuk Choi
5d411fd963
Another patch for the multi syncrepl thread support
2003-11-26 20:40:16 +00:00
Kurt Zeilenga
159de0f135
Updated notices and acknowledgements
2003-11-26 07:16:36 +00:00
Kurt Zeilenga
e3a4c4ec9c
Notice/Acknowledge updates
2003-11-26 02:58:56 +00:00
Howard Chu
fb493f5f3a
ITS#2820 fix pthread_create for Draft 4
2003-11-13 02:41:01 +00:00
Jong Hyuk Choi
0a7a97d294
Copyright heading
2003-11-12 00:25:48 +00:00
Howard Chu
45c42630db
Add "defer" arg to ldap_pvt_runqueue_resched to suspend scheduling of
...
a task in the queue without removing it.
2003-10-25 21:13:08 +00:00
Jong Hyuk Choi
85ff0377d2
runqueue locking fix (ITS#2746)
2003-10-12 09:13:04 +00:00
Howard Chu
cc6cfd30cc
Include <ac/socket.h> so Windows can pull in struct timeval def
2003-09-27 06:48:15 +00:00
Kurt Zeilenga
12304f64e5
Merge partial and intermediate responses
2003-05-31 05:01:49 +00:00
Kurt Zeilenga
e8144158f3
Add/Update various copyright notices
2003-05-25 03:31:21 +00:00
Jong Hyuk Choi
4192c4aaaa
select loop changes for persistent threads
2003-05-20 23:52:11 +00:00
Jong Hyuk Choi
8340afd736
remove ch_malloc/ch_free
2003-05-14 21:30:25 +00:00
Jong Hyuk Choi
35d1bd68b9
runqueue restructuring
2003-05-07 23:52:08 +00:00
Jong Hyuk Choi
580ae073e1
runqueue update
2003-05-07 22:29:26 +00:00
Jong Hyuk Choi
45776bff04
a runqueue for periodic thread execution (for syncrepl)
2003-05-07 02:06:01 +00:00
Howard Chu
a54549f1d5
Use pthread_equal to compare thread IDs
2003-05-02 12:23:31 +00:00
Howard Chu
b4dfd0c08c
Add ldap_pvt_thread_pool_context() stub for NO_THREADS builds
2003-04-16 00:18:56 +00:00
Howard Chu
30b3d741d5
Fix prev commit - hash bytes of ldap_pvt_thread_t to find proper slot
2003-04-13 05:48:48 +00:00
Howard Chu
a6a6946a67
New ldap_pvt_thread_pool_context()
2003-04-12 04:01:40 +00:00