]> git.sur5r.net Git - openldap/commit
ITS#8638 Add a recursive mutex to libldap_r for libevent
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 8 Mar 2017 17:03:18 +0000 (17:03 +0000)
committerOndřej Kuzník <ondra@mistotebe.net>
Tue, 26 Sep 2017 15:26:33 +0000 (16:26 +0100)
commita8f01cc88589a407cb9835b47ece8661c91e6a6b
tree76e1dde6c9feb58820c96fa27ca9b4f9df5af7b3
parent5adcdb7642dbafae484b8f3feb391490ff9be087
ITS#8638 Add a recursive mutex to libldap_r for libevent

Most thread implementations suppport a native recursive mutex, use that
where possible (especially when a regular mutex is recursive already).

Also provide a macro for applications to test whether they can use the
lock functions interchangeably.
include/ldap_int_thread.h
include/ldap_pvt_thread.h
libraries/libldap_r/thr_cthreads.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