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

Re: Thread safety



At 11:54 AM 7/19/99 +1000, Andrew Davison wrote:
>Hi,
>
>I have a question regarding use of the client API in a multi-threaded
>environment.Can multiple threads share use of a single connection (ie.
>session handle)? In particular, should access be via a mutex to limit
>access to one at a time, or can multiple calls be outstanding, such as
>synchronous one like ldap_search_s()? Is there anything to be aware of,
>precautions etc.???

The OpenLDAP 1.x API is not thread safe.  Your application must
serialize all API calls.

	Kurt