Make the thread functions a bit easier to use
authorDerrell Lipman <derrell@dworkin.(none)>
Wed, 13 May 2009 18:31:40 +0000 (14:31 -0400)
committerDerrell Lipman <derrell@dworkin.(none)>
Wed, 13 May 2009 18:37:28 +0000 (14:37 -0400)
commit088906b0641e48c704c5cd529f620023616f561f
treeb80f75c5ac50ace8e16032066b2bd0d61f84c107
parentb9f3a78169be962c4f1fce625ca3a291d9f93c7c
Make the thread functions a bit easier to use

- Create separate macros for lock and unlock so that it's easier to identify
  which request is being made.

- Initialize *ponce in the SMB_THREAD_ONCE macro in the non-thread-safe case,
  rather than requiring each init function to determine if it's in the
  non-thread-safe case and manually initialize.

Derrell
lib/util/smb_threads.c
lib/util/smb_threads.h
lib/util/smb_threads_internal.h