/freebsd-current/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | mutex.h | 16 class Mutex final : PlatformMutex { 18 constexpr Mutex() = default; 19 ~Mutex() = default; 20 Mutex(const Mutex &) = delete; 21 Mutex &operator=(const Mutex &) = delete; 32 explicit ScopedLock(Mutex &Mx) : Mu(Mx) { Mu.lock(); } 38 Mutex Μ
|
/freebsd-current/sys/contrib/dev/acpica/components/executer/ |
H A D | exmutex.c | 3 * Module Name: exmutex - ASL Mutex Acquire/Release functions 184 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; 194 if (ObjDesc->Mutex.Next) 196 (ObjDesc->Mutex.Next)->Mutex.Prev = ObjDesc->Mutex.Prev; 199 if (ObjDesc->Mutex.Prev) 201 (ObjDesc->Mutex.Prev)->Mutex.Next = ObjDesc->Mutex [all...] |
H A D | exsystem.c | 216 * PARAMETERS: Mutex - Mutex to wait on 229 ACPI_MUTEX Mutex, 238 Status = AcpiOsAcquireMutex (Mutex, ACPI_DO_NOT_WAIT); 249 Status = AcpiOsAcquireMutex (Mutex, Timeout); 228 AcpiExSystemWaitMutex( ACPI_MUTEX Mutex, UINT16 Timeout) argument
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
H A D | mutex_fuchsia.cpp | 14 void Mutex::lock() __TA_NO_THREAD_SAFETY_ANALYSIS { sync_mutex_lock(&Mu); } 16 bool Mutex::tryLock() __TA_NO_THREAD_SAFETY_ANALYSIS { 20 void Mutex::unlock() __TA_NO_THREAD_SAFETY_ANALYSIS { sync_mutex_unlock(&Mu); }
|
H A D | mutex_posix.cpp | 15 void Mutex::lock() { 22 bool Mutex::tryLock() { return pthread_mutex_trylock(&Mu) == 0; } 24 void Mutex::unlock() {
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | tsd.h | 39 if (Mutex.tryLock()) { 51 Mutex.lock(); 53 inline void unlock() NO_THREAD_SAFETY_ANALYSIS { Mutex.unlock(); } 61 void assertLocked(bool BypassCheck) ASSERT_CAPABILITY(Mutex) { 63 Mutex.assertHeld(); 67 // Cache/QuarantineCache always have the `Mutex` acquired. However, the 72 // TODO(chiahungduan): Ideally, we want to do `Mutex.assertHeld` but acquiring 75 typename Allocator::CacheT &getCache() REQUIRES(Mutex) { return Cache; } 76 typename Allocator::QuarantineCacheT &getQuarantineCache() REQUIRES(Mutex) { 81 HybridMutex Mutex; variable [all...] |
H A D | stats.h | 64 void link(LocalStats *S) EXCLUDES(Mutex) { 65 ScopedLock L(Mutex); 69 void unlink(LocalStats *S) EXCLUDES(Mutex) { 70 ScopedLock L(Mutex); 76 void get(uptr *S) const EXCLUDES(Mutex) { 77 ScopedLock L(Mutex); 89 void lock() ACQUIRE(Mutex) { Mutex.lock(); } 90 void unlock() RELEASE(Mutex) { Mutex 96 mutable HybridMutex Mutex; member in class:scudo::GlobalStats [all...] |
H A D | condition_variable_base.h | 21 void bindTestOnly(HybridMutex &Mutex) { argument 23 boundMutex = &Mutex; 25 (void)Mutex;
|
H A D | timing.h | 94 Timer getOrCreateTimer(const char *Name) EXCLUDES(Mutex) { 95 ScopedLock L(Mutex); 128 Timer nest(const Timer &T, const char *Name) EXCLUDES(Mutex) { 132 ScopedLock L(Mutex); 138 void report(const Timer &T) EXCLUDES(Mutex) { 139 ScopedLock L(Mutex); 150 void printAll() EXCLUDES(Mutex) { 151 ScopedLock L(Mutex); 156 void printAllImpl() REQUIRES(Mutex) { 172 const u32 ExtraIndent = 0) REQUIRES(Mutex) { 209 HybridMutex Mutex; member in class:scudo::TimingManager 213 u64 NumEventsReported GUARDED_BY(Mutex) = 0; member in class:scudo::TimingManager 214 u32 NumAllocatedTimers GUARDED_BY(Mutex) = 0; member in class:scudo::TimingManager [all...] |
H A D | mutex.h | 85 explicit ScopedLock(HybridMutex &M) ACQUIRE(M) : Mutex(M) { Mutex.lock(); } 86 ~ScopedLock() RELEASE() { Mutex.unlock(); } 89 HybridMutex &Mutex; member in class:scudo::ScopedLock
|
H A D | tsd_exclusive.h | 30 void init(Allocator *Instance) REQUIRES(Mutex) { 38 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { 39 ScopedLock L(Mutex); 45 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { 58 ScopedLock L(Mutex); 97 Mutex.lock(); 105 Mutex.unlock(); 141 bool Initialized GUARDED_BY(Mutex) = false; member in struct:scudo::InitState 144 HybridMutex Mutex; member in struct:scudo::InitState
|
H A D | secondary.h | 157 ScopedLock L(Mutex); 193 void store(const Options &Options, LargeBlock::Header *H) EXCLUDES(Mutex) { 226 ScopedLock L(Mutex); 229 // read Options and when we locked Mutex. We can't insert our entry into 274 LargeBlock::Header **H, bool *Zeroed) EXCLUDES(Mutex) { 284 ScopedLock L(Mutex); 385 void disableMemoryTagging() EXCLUDES(Mutex) { 386 ScopedLock L(Mutex); 404 void disable() NO_THREAD_SAFETY_ANALYSIS { Mutex.lock(); } 406 void enable() NO_THREAD_SAFETY_ANALYSIS { Mutex 455 HybridMutex Mutex; member in class:scudo::MapAllocatorCache 456 u32 EntriesCount GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocatorCache 457 u32 QuarantinePos GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocatorCache 460 u64 OldestTime GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocatorCache 461 u32 IsFullEvents GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocatorCache 463 u32 CallsToRetrieve GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocatorCache 464 u32 SuccessfulRetrieves GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocatorCache 466 CachedBlock Entries[CacheConfig::EntriesArraySize] GUARDED_BY(Mutex) = {}; member in class:scudo::MapAllocatorCache 468 Quarantine GUARDED_BY(Mutex) = {}; member in class:scudo::MapAllocatorCache 538 mutable HybridMutex Mutex; member in class:scudo::MapAllocator 540 uptr AllocatedBytes GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocator 541 uptr FreedBytes GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocator 542 uptr FragmentedBytes GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocator 543 uptr LargestSize GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocator 544 u32 NumberOfAllocs GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocator 545 u32 NumberOfFrees GUARDED_BY(Mutex) = 0; member in class:scudo::MapAllocator [all...] |
H A D | tsd_shared.h | 29 void init(Allocator *Instance) REQUIRES(Mutex) { 40 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { 41 ScopedLock L(Mutex); 47 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { 53 ScopedLock L(Mutex); 94 Mutex.lock(); 102 Mutex.unlock(); 244 bool Initialized GUARDED_BY(Mutex) = false; member in struct:scudo::TSDRegistrySharedT 245 HybridMutex Mutex; member in struct:scudo::TSDRegistrySharedT
|
H A D | primary32.h | 107 ScopedLock L(Sci->Mutex); 131 ScopedLock L1(Sci->Mutex); 146 ScopedLock L1(Sci->Mutex); 216 ScopedLock L(Sci->Mutex); 235 ScopedLock L(Sci->Mutex); 259 ScopedLock L(Sci->Mutex); 268 getSizeClassInfo(static_cast<uptr>(I))->Mutex.lock(); 270 getSizeClassInfo(SizeClassMap::BatchClassId)->Mutex.lock(); 278 getSizeClassInfo(SizeClassMap::BatchClassId)->Mutex.unlock(); 282 getSizeClassInfo(I)->Mutex 413 HybridMutex Mutex; variable [all...] |
/freebsd-current/sys/contrib/dev/acpica/components/dispatcher/ |
H A D | dsmethod.c | 427 /* Create the actual OS Mutex */ 429 Status = AcpiOsCreateMutex (&MutexDesc->Mutex.OsMutex); 436 MutexDesc->Mutex.SyncLevel = MethodDesc->Method.SyncLevel; 437 MethodDesc->Method.Mutex = MutexDesc; 497 if (!ObjDesc->Method.Mutex) 520 ObjDesc->Method.Mutex->Mutex.SyncLevel)) 523 "Cannot acquire Mutex for method [%4.4s]" 536 !ObjDesc->Method.Mutex->Mutex [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/benchmarks/ |
H A D | vts_many_threads_bench.cpp | 31 class __attribute__((aligned(64))) Mutex { class 33 Mutex() { pthread_mutex_init(&m_, NULL); } function in class:Mutex 34 ~Mutex() { pthread_mutex_destroy(&m_); } 43 Mutex mutexes[kNumMutexes];
|
/freebsd-current/sys/contrib/dev/acpica/components/utilities/ |
H A D | utmutex.c | 224 /* Mutex for _OSI support */ 311 if (!AcpiGbl_MutexInfo[MutexId].Mutex) 313 Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex); 342 AcpiOsDeleteMutex (AcpiGbl_MutexInfo[MutexId].Mutex); 344 AcpiGbl_MutexInfo[MutexId].Mutex = NULL; 385 * Mutex debug code, for internal debugging only. 399 "Mutex [%s] already acquired by this thread [%u]", 418 "Thread %u attempting to acquire Mutex [%s]\n", 422 AcpiGbl_MutexInfo[MutexId].Mutex, ACPI_WAIT_FOREVER); 426 "Thread %u acquired Mutex [ [all...] |
H A D | utxfmutex.c | 174 * PARAMETERS: Handle - Mutex or prefix handle (optional) 175 * Pathname - Mutex pathname (optional) 217 /* Ensure that we actually have a Mutex object */ 242 * PARAMETERS: Handle - Mutex or prefix handle (optional) 243 * Pathname - Mutex pathname (optional) 276 Status = AcpiOsAcquireMutex (MutexObj->Mutex.OsMutex, Timeout); 287 * PARAMETERS: Handle - Mutex or prefix handle (optional) 288 * Pathname - Mutex pathname (optional) 319 AcpiOsReleaseMutex (MutexObj->Mutex.OsMutex);
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Mutex.h | 1 //===- llvm/Support/Mutex.h - Mutex Operating System Concept -----*- C++ -*-===// 9 // This file declares the llvm::sys::Mutex class. 65 /// Mutex - A standard, always enforced mutex. 66 typedef SmartMutex<false> Mutex; typedef in namespace:llvm::sys
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_allocator.h | 178 SpinMutex Mutex{}; 181 SpinMutexLock Lock(&Mutex); variable 231 Mutex() {} function in struct:__xray::Allocator 239 Mutex() {} function in struct:__xray::Allocator 245 SpinMutexLock L0(&Mutex); variable 246 SpinMutexLock L1(&O.Mutex); 260 SpinMutexLock L0(&Mutex); variable 261 SpinMutexLock L1(&O.Mutex);
|
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 94 std::lock_guard<sys::Mutex> locked(lock); 106 std::lock_guard<sys::Mutex> locked(lock); 115 std::lock_guard<sys::Mutex> locked(lock); 142 std::lock_guard<sys::Mutex> locked(lock); 149 std::lock_guard<sys::Mutex> locked(lock); 191 std::lock_guard<sys::Mutex> locked(lock); 239 std::lock_guard<sys::Mutex> locked(lock); 259 std::lock_guard<sys::Mutex> locked(lock); 274 std::lock_guard<sys::Mutex> locked(lock); 301 std::lock_guard<sys::Mutex> locke [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_mutex.h | 83 // (should not be used as real Mutex type). 102 // `__sanitizer::Mutex` is used. 161 class SANITIZER_MUTEX Mutex : CheckedMutex { class in namespace:__sanitizer 163 explicit constexpr Mutex(MutexType type = MutexUnchecked) function in class:__sanitizer::Mutex 371 Mutex(LinkerInitialized) = delete; 372 Mutex(const Mutex &) = delete; 373 void operator=(const Mutex &) = delete; 440 typedef GenericScopedLock<Mutex> Lock; 441 typedef GenericScopedReadLock<Mutex> ReadLoc [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/dd/ |
H A D | dd_rtl.h | 45 Mutex report_mutex;
|
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | GDBRegistrationListener.cpp | 16 #include "llvm/Support/Mutex.h" 99 sys::Mutex JITDebugLock; 154 std::lock_guard<llvm::sys::Mutex> locked(JITDebugLock); 178 std::lock_guard<llvm::sys::Mutex> locked(JITDebugLock); 197 std::lock_guard<llvm::sys::Mutex> locked(JITDebugLock);
|
/freebsd-current/contrib/llvm-project/llvm/lib/Support/ |
H A D | Signposts.cpp | 15 #include "llvm/Support/Mutex.h" 46 sys::SmartMutex<true> Mutex; member in class:llvm::SignpostEmitterImpl 50 sys::SmartScopedLock<true> Lock(Mutex);
|