Re: C-SDK Question - Multithreaded Client

Anton Bobrov <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Organization Sun Microsystems, Inc.
Message-ID <[email protected]>
Parag Warudkar wrote:
> If I did not concurrently share the LDAP* between threads, but I still
> used one LDAP* between different threads at different time (Connection
> pool scenario - connections randomly handed over to threads and reused
> but at any given point in time one LDAP* is used by only one thread
> exclusively) and if I had to use plain libldap, do I need to provide
> my own get/set errno and mutex lock/unlock or just get/set errno or
> none?

none.

> prldap seems to be using only get/set errno if the LDAP* is not shared
> and both get/set errno and mutex alloc/free lock/unlock if it is
> shared. The only question is what does shared mean - concurrently used
> by different threads or shared as in a connection pool or both?

"concurrently used by different threads".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.