[Date Prev][Date Next]
ldap_search(ld,...) and ldap_result(ld, ...) concurrence
I would like to have thread (A) call ldap_search( ld, ....) and have a
thread (B) call ldap_result( ld, ...) with timeout=NULL, to collect
results for any msg_id. The key point here is that the threads share the
same ldap decriptor.
I would have to make sure that:
1) ldap_search() and ldap_result() are synchronized (if there is a
need for this).
2) While in thread (B), ldap_result() blocks on select() waiting for
TCP data, it does not hold any mutex that would make ldap_search(ld,...)
Is this possible with version 2.0.7, please?
Thank you in advance.
tel;fax:+1 (732) 949-7397
tel;work:+1 (732) 332-5559
adr;quoted-printable:;;101 Crawfords Corner Rd=0D=0ARoom 4J-513A=0D=0A;Holmdel;NJ;07733;USA