[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Is the openldap libldap library thread safe?



libldap_r is the version of libldap compiled with the reentrant #defines
(LDAP_R_COMPILE or something like that? I forget.) As far as I know, the
API is identical, although there's a chance a couple *_thread_* might be
exposed. I believe the define makes libldap use things like
gethostbyname_r and other things that you'd want in a multithreaded
application.

On Fri, 23 Jun 2006, Jeremiah Martell wrote:

> It's not clear what ldap_r is or how I'm supposed to use it. Googling
> has provided no useful links. It seems like it's a wrapper of some
> sort for openldap to use threads. I am compiling openldap with the
> "--with-threads" option to configure. Is this all that's required, or
> is there something more?
>
> Thanks,
>  - Jeremiah