[SCM] Samba Shared Repository - branch master updated -
idra at samba.org
Tue Apr 14 19:36:03 GMT 2009
On Tue, 2009-04-14 at 10:53 -0700, Jeremy Allison wrote:
> Because it has to add the pointer onto globally
> linked list, a static "HEAD" pointer inside the
> talloc library. Now I could add a mutex around
> that inside talloc, but I'm pretty sure we don't
> want to add the SMB_THREAD_XX calls inside talloc.
> I think talloc is thread safe so long as you avoid the
> NULL context.
ah right, I forgot that NULL actually uses the null_context ... I wonder
why we do so though.
why don't we let talloc(NULL, ..); generate a completely new context ?
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>
More information about the samba-technical