sanitizer_mutex.h (245614) | sanitizer_mutex.h (251034) |
---|---|
1//===-- sanitizer_mutex.h ---------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 56 unchanged lines hidden (view full) --- 65 private: 66 SpinMutex(const SpinMutex&); 67 void operator=(const SpinMutex&); 68}; 69 70class BlockingMutex { 71 public: 72 explicit BlockingMutex(LinkerInitialized); | 1//===-- sanitizer_mutex.h ---------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 56 unchanged lines hidden (view full) --- 65 private: 66 SpinMutex(const SpinMutex&); 67 void operator=(const SpinMutex&); 68}; 69 70class BlockingMutex { 71 public: 72 explicit BlockingMutex(LinkerInitialized); |
73 BlockingMutex(); |
|
73 void Lock(); 74 void Unlock(); | 74 void Lock(); 75 void Unlock(); |
76 void CheckLocked(); |
|
75 private: 76 uptr opaque_storage_[10]; 77 uptr owner_; // for debugging 78}; 79 80template<typename MutexType> 81class GenericScopedLock { 82 public: --- 41 unchanged lines hidden --- | 77 private: 78 uptr opaque_storage_[10]; 79 uptr owner_; // for debugging 80}; 81 82template<typename MutexType> 83class GenericScopedLock { 84 public: --- 41 unchanged lines hidden --- |