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". _______________________________________________ dev-tech-ldap mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-ldap
