[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1587-g7c39e45

Derrell Lipman derrell at samba.org
Wed May 13 01:33:39 GMT 2009


The branch, master has been updated
       via  7c39e450fc4216e1138e4f30d2c1e2b6ba3854a8 (commit)
      from  8a60c26c7cb788fe181fb8db10e454b96dda23a9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7c39e450fc4216e1138e4f30d2c1e2b6ba3854a8
Author: Derrell Lipman <derrell at dworkin.(none)>
Date:   Tue May 12 21:32:33 2009 -0400

    Fix broken smb_thread_once function (again)
    
    - It would help if smb_thread_once did, eventually, set the variable that
      prevents the init function from being run again. Sigh. It must be getting
      late.
    
    Derrell

-----------------------------------------------------------------------

Summary of changes:
 lib/util/smb_threads.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/util/smb_threads.c b/lib/util/smb_threads.c
index 6f84a2e..e2d01f7 100644
--- a/lib/util/smb_threads.c
+++ b/lib/util/smb_threads.c
@@ -121,6 +121,9 @@ int smb_thread_once(smb_thread_once_t *ponce, void (*init_fn)(void))
         if (! *ponce) {
                 /* Nope, we need to run the initialization function */
                 (*init_fn)();
+
+                /* Now we can indicate that the function has been run */
+                *ponce = true;
         }
 
         /* Unlock the mutex */


-- 
Samba Shared Repository


More information about the samba-cvs mailing list