diff options
author | Derrell Lipman <derrell@dworkin.(none)> | 2009-05-13 14:33:21 -0400 |
---|---|---|
committer | Derrell Lipman <derrell@dworkin.(none)> | 2009-05-13 14:37:28 -0400 |
commit | 045af600f299f55f5a5b09a23b753ba97880aa06 (patch) | |
tree | 968d6a1f9ceeb9bc5685ce9cccfe4ddc7530ad35 /lib | |
parent | 088906b0641e48c704c5cd529f620023616f561f (diff) | |
download | samba-045af600f299f55f5a5b09a23b753ba97880aa06.tar.gz |
Take advantage of the easier-to-use thread macros
- Now that we initialize for the non-thread-safe case in the macro, there's no
need to do it here too.
Derrell
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/talloc_stack.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/util/talloc_stack.c b/lib/util/talloc_stack.c index f1727ce469..596efbf6cd 100644 --- a/lib/util/talloc_stack.c +++ b/lib/util/talloc_stack.c @@ -60,14 +60,6 @@ static smb_thread_once_t ts_initialized = SMB_THREAD_ONCE_INIT; static void talloc_stackframe_init(void * unused) { - if (!global_tfp) { - /* Non-thread safe init case. */ - if (SMB_THREAD_ONCE_IS_INITIALIZED(ts_initialized)) { - return; - } - SMB_THREAD_ONCE_INITIALIZE(ts_initialized); - } - if (SMB_THREAD_CREATE_TLS("talloc_stackframe", global_ts)) { smb_panic("talloc_stackframe_init create_tls failed"); } |