[llvm-commits] [llvm] r63963 - /llvm/trunk/include/llvm/System/Mutex.h

Dan Gohman gohman at apple.com
Fri Feb 6 13:17:03 PST 2009


Author: djg
Date: Fri Feb  6 15:17:03 2009
New Revision: 63963

URL: http://llvm.org/viewvc/llvm-project?rev=63963&view=rev
Log:
Make Mutex's constructor explicit, and tidy up whitespace.

Modified:
    llvm/trunk/include/llvm/System/Mutex.h

Modified: llvm/trunk/include/llvm/System/Mutex.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Mutex.h?rev=63963&r1=63962&r2=63963&view=diff

==============================================================================
--- llvm/trunk/include/llvm/System/Mutex.h (original)
+++ llvm/trunk/include/llvm/System/Mutex.h Fri Feb  6 15:17:03 2009
@@ -30,11 +30,11 @@
       /// also more likely to deadlock (same thread can't acquire more than
       /// once).
       /// @brief Default Constructor.
-      Mutex ( bool recursive = true );
+      explicit Mutex(bool recursive = true);
 
       /// Releases and removes the lock
       /// @brief Destructor
-      ~Mutex ( void );
+      ~Mutex();
 
     /// @}
     /// @name Methods
@@ -52,7 +52,7 @@
       /// lock.
       /// @returns false if any kind of error occurs, true otherwise.
       /// @brief Unconditionally release the lock.
-      bool release(void);
+      bool release();
 
       /// Attempts to acquire the lock without blocking. If the lock is not
       /// available, this function returns false quickly (without blocking). If





More information about the llvm-commits mailing list