summaryrefslogtreecommitdiff
path: root/lib/util/talloc_stack.c
AgeCommit message (Collapse)AuthorFilesLines
2009-05-13Take advantage of the easier-to-use thread macrosDerrell Lipman1-8/+0
- Now that we initialize for the non-thread-safe case in the macro, there's no need to do it here too. Derrell
2009-05-13Allow a parameter to smb_thread_once's initialization functionDerrell Lipman1-2/+2
- 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
2009-04-20Attempt to fix build farm on platforms where pthread_once_t is a struct.Jeremy Allison1-2/+2
Jeremy.
2009-04-20Fix the pthread_once initialization issue. Make talloc_stackframe useJeremy Allison1-5/+21
this. Jeremy.
2009-04-14Ensure a tls key is only generated once - wrap create & destroy in a mutex.Jeremy Allison1-1/+1
Change the function names to add _once to the tls_create & tls_destroy to make this obvious. Jeremy.
2009-04-14Make talloc_stack threadsafe using TLS. Volker pleaseJeremy Allison1-20/+73
check. Passes make test and basic valgrind testing. Jeremy.
2008-10-23Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij1-1/+1
2008-10-23Import talloc_stack into util library.Jelmer Vernooij1-0/+130