aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-06 21:17:03 +0000
committerDan Gohman <gohman@apple.com>2009-02-06 21:17:03 +0000
commit0ff08937a3c1e1fad49d500be7a97949467b229e (patch)
tree20e9dc21382f1957a0bc0c0e0222a28597f67963 /include
parent85ac70bec38801a1c64349dfc3760be735dbcba9 (diff)
downloadexternal_llvm-0ff08937a3c1e1fad49d500be7a97949467b229e.zip
external_llvm-0ff08937a3c1e1fad49d500be7a97949467b229e.tar.gz
external_llvm-0ff08937a3c1e1fad49d500be7a97949467b229e.tar.bz2
Make Mutex's constructor explicit, and tidy up whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/System/Mutex.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/System/Mutex.h b/include/llvm/System/Mutex.h
index e6d98cb..4f38493 100644
--- a/include/llvm/System/Mutex.h
+++ b/include/llvm/System/Mutex.h
@@ -30,11 +30,11 @@ namespace llvm
/// 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 @@ namespace llvm
/// 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