From 088906b0641e48c704c5cd529f620023616f561f Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Wed, 13 May 2009 14:31:40 -0400 Subject: 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.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/util/smb_threads.h') diff --git a/lib/util/smb_threads.h b/lib/util/smb_threads.h index 809673ab54..9a09616774 100644 --- a/lib/util/smb_threads.h +++ b/lib/util/smb_threads.h @@ -22,8 +22,6 @@ typedef bool smb_thread_once_t; #define SMB_THREAD_ONCE_INIT false -#define SMB_THREAD_ONCE_IS_INITIALIZED(val) ((val) == true) -#define SMB_THREAD_ONCE_INITIALIZE(val) ((val) = true) enum smb_thread_lock_type { SMB_THREAD_LOCK = 1, -- cgit