Allow a parameter to smb_thread_once's initialization function
authorDerrell Lipman <derrell@dworkin.(none)>
Wed, 13 May 2009 13:49:59 +0000 (09:49 -0400)
committerDerrell Lipman <derrell@dworkin.(none)>
Wed, 13 May 2009 13:50:17 +0000 (09:50 -0400)
commite03b9ae609a3ef856c483832332e307975a1bf0a
treed60aec946ceedc3bfe5205853a769b15a59953b1
parent652251701df7dec1401eab9b1dbc7e3ac5c7e7ad
Allow a parameter to smb_thread_once's initialization function

- This should make life easier for ourselves. We're no longer constrained to
  the semantics of pthread_once, so let's allow passing a parameter to the
  initialization function. Some of Samba's init functions return a
  value. Although I haven't searched, I suspect that some of the init
  functions require in input parameters. The parameter added here can be used
  for input, output, or both, as necessary... or ignored, as is now done in
  talloc_stackframe_init().

Derrell
lib/util/smb_threads.c
lib/util/smb_threads.h
lib/util/smb_threads_internal.h
lib/util/talloc_stack.c