Optimize smb_thread_once usage by not calling it if known already called
authorDerrell Lipman <derrell@dworkin.(none)>
Mon, 11 May 2009 02:58:12 +0000 (22:58 -0400)
committerDerrell Lipman <derrell@dworkin.(none)>
Mon, 11 May 2009 02:58:12 +0000 (22:58 -0400)
commitc644beb9d25adead6fc1c285ae289b8bfe3fde89
tree680c77198e89bca43fa35f1d50c31df3a3516b75
parent69dd1b474039903256901bace09844e15a712d0f
Optimize smb_thread_once usage by not calling it if known already called

- The macro SMB_THREAD_ONCE now tests whether the "once" variable is already
  set, and if so avoids calling smb_thread_once().

Derrell
util/smb_threads_internal.h