Howard Chu hyc at
Tue Feb 13 23:55:22 GMT 2007

Love Hörnquist Åstrand wrote:
> 14 feb 2007 kl. 10.21 skrev Howard Chu:
>> This was one of Kurt's points, but I take it to mean "free- threaded" 
>> i.e. the same library should work with or without threads. The 
>> calling app should provide threading/locking callbacks if needed.
> For me free-threaded means no locking done at all, because its not 
> needed.

And that would be ideal, yes. Looking at how things work right now I 
don't think we can accomplish it. E.g. if you allow multiple threads to 
use a single LDAP session, you must guarantee that each outgoing request 
has a unique messageID and you must avoid re-using any IDs over the life 
of the session. To me this means locked access to a messageID counter, 
but if there are other ways, great.
> Love

  -- Howard Chu
  Chief Architect, Symas Corp.
  Director, Highland Sun
  Chief Architect, OpenLDAP

More information about the samba-technical mailing list