mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
Support: make LLVM Mutexes STL-compatible
Use lock/unlock() convention instead of acquire/release(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -29,8 +29,8 @@ namespace llvm {
|
||||
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(); }
|
||||
MutexGuard(sys::Mutex &m) : M(m) { M.lock(); }
|
||||
~MutexGuard() { M.unlock(); }
|
||||
/// holds - Returns true if this locker instance holds the specified lock.
|
||||
/// This is mostly used in assertions to validate that the correct mutex
|
||||
/// is held.
|
||||
|
Reference in New Issue
Block a user