Threading libsmbclient - a proposal.

Jeremy Allison jra at
Wed Apr 8 00:39:10 GMT 2009

On Tue, Apr 07, 2009 at 05:36:04PM -0700, Jeremy Allison wrote:
> On Wed, Apr 08, 2009 at 12:31:38AM +0000, simo wrote:
> > 
> > If you think you can add other types of locks later on without changing
> > the public API I see no problem going step by step.
> > But keep in mind that the huge macro (or my proposed define), moves all
> > that code into the API.
> No, actually it doesn't - that's the nice thing about it !

In case I'm not being clear enough here, the huge macro
is a *sample* implementation of the public API, but it's
not the only one. Anyone can write an implementation for
any platform so long as it has the same semantics that
the vectored functions in the struct require.

Note the sample code in the macro doesn't make use
of the lock names or debugging __location__ information,
but another implementation could easily do so for
debuggin purposes.


More information about the samba-technical mailing list