Ensure a tls key is only generated once - wrap create & destroy in a mutex.
authorJeremy Allison <jra@samba.org>
Tue, 14 Apr 2009 22:19:39 +0000 (15:19 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 14 Apr 2009 22:19:39 +0000 (15:19 -0700)
commit8e06e945b6b03db825862f2f057f0dfe13ade3a2
treed95c239803eec9626c9da3b16f5bc0c71672b523
parent4721be488ceb8229d564e4b63ca9937603394e51
Ensure a tls key is only generated once - wrap create & destroy in a mutex.
Change the function names to add _once to the tls_create & tls_destroy to
make this obvious.
Jeremy.
lib/util/smb_threads.c
lib/util/smb_threads.h
lib/util/smb_threads_internal.h
lib/util/talloc_stack.c