]> git.sur5r.net Git - openldap/commit
Add thread debugging wrapper thr_debug.c and ldap_thr_debug.h in libldap_r/,
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 17 Sep 2005 23:28:08 +0000 (23:28 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 17 Sep 2005 23:28:08 +0000 (23:28 +0000)
commit123948bd5ee67881ba59fd2604581c75524d8770
tree23f99ac4e913b83e067c5f751f987c2ae58199f9
parentad2ec8effa59412f3989a49930b6e16022d2082a
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.
15 files changed:
include/ldap_int_thread.h
include/ldap_pvt_thread.h
libraries/libldap_r/Makefile.in
libraries/libldap_r/ldap_thr_debug.h [new file with mode: 0644]
libraries/libldap_r/rdwr.c
libraries/libldap_r/thr_cthreads.c
libraries/libldap_r/thr_debug.c [new file with mode: 0644]
libraries/libldap_r/thr_lwp.c
libraries/libldap_r/thr_nt.c
libraries/libldap_r/thr_posix.c
libraries/libldap_r/thr_pth.c
libraries/libldap_r/thr_stub.c
libraries/libldap_r/thr_thr.c
libraries/libldap_r/threads.c
libraries/libldap_r/tpool.c