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)
commit9a93dc092c6951cdfa6e05c3885a006e5e56d7d3
treefcfdc46c7387a5ca016eb58a94647f5833dd14fa
parent404327ad41c5f24f9ace5cad31509149d87197fd
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
lib/util/smb_threads_internal.h