1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

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
This commit is contained in:
Derrell Lipman
2009-05-13 14:33:21 -04:00
parent 088906b064
commit 045af600f2

View File

@ -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");
}