tdb API issues
Jeremy Allison
jra at samba.org
Fri Apr 3 17:11:18 GMT 2009
On Fri, Apr 03, 2009 at 10:00:24AM -0700, Howard Chu wrote:
>
> Sure, but that should be the library's responsibility. When a caller
> provides you set of mutex methods, you should at that point create
> whatever global locks you're going to need. (Which is what
> tdb_set_mutex() does - it checks the provided set of methods and then
> goes about creating the globals. Of course at that point in time, I only
> had 1 global...) I.e., the moment that a caller gives you a set of mutex
> methods *is* the lock initialization call for the entire library, you
> don't need any further initialization functions.
Good point - might as well have the internal code create
the global lock array.....
I'll make that change - thanks !
Jeremy.
More information about the samba-technical
mailing list