projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Casting.h: Automatically handle isa<Base>(Derived).
[oota-llvm.git]
/
include
/
llvm
/
Support
/
MutexGuard.h
diff --git
a/include/llvm/Support/MutexGuard.h
b/include/llvm/Support/MutexGuard.h
index 723794177c3075573ae43c4d4bcee181fd4615b7..6bb162277e2b22118b298c34bf84ad5757e1cad6 100644
(file)
--- a/
include/llvm/Support/MutexGuard.h
+++ b/
include/llvm/Support/MutexGuard.h
@@
-15,7
+15,7
@@
#ifndef LLVM_SUPPORT_MUTEXGUARD_H
#define LLVM_SUPPORT_MUTEXGUARD_H
#ifndef LLVM_SUPPORT_MUTEXGUARD_H
#define LLVM_SUPPORT_MUTEXGUARD_H
-#include
<llvm/System/Mutex.h>
+#include
"llvm/Support/Mutex.h"
namespace llvm {
/// Instances of this class acquire a given Mutex Lock when constructed and
namespace llvm {
/// Instances of this class acquire a given Mutex Lock when constructed and
@@
-26,8
+26,8
@@
namespace llvm {
/// @brief Guard a section of code with a Mutex.
class MutexGuard {
sys::Mutex &M;
/// @brief Guard a section of code with a Mutex.
class MutexGuard {
sys::Mutex &M;
- MutexGuard(const MutexGuard &)
; // DO NOT IMPLEMENT
- void operator=(const MutexGuard &)
; // DO NOT IMPLEMENT
+ MutexGuard(const MutexGuard &)
LLVM_DELETED_FUNCTION;
+ void operator=(const MutexGuard &)
LLVM_DELETED_FUNCTION;
public:
MutexGuard(sys::Mutex &m) : M(m) { M.acquire(); }
~MutexGuard() { M.release(); }
public:
MutexGuard(sys::Mutex &m) : M(m) { M.acquire(); }
~MutexGuard() { M.release(); }