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

ldap_search(ld,...) and ldap_result(ld, ...) concurrence



Hello,

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,...)
block.

Is this possible with version 2.0.7, please?

Thank  you in advance.

Regards,


T. Alexiou
begin:vcard 
n:Alexiou;Triantafyllos
tel;fax:+1 (732) 949-7397
tel;work:+1 (732) 332-5559
x-mozilla-html:FALSE
version:2.1
email;internet:akis@lucent.com
adr;quoted-printable:;;101 Crawfords Corner Rd=0D=0ARoom 4J-513A=0D=0A;Holmdel;NJ;07733;USA
fn:Triantafyllos Alexiou
end:vcard