| /freebsd-src/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; in AcpiExUnlinkMutex() 194 if (ObjDesc->Mutex.Next) in AcpiExUnlinkMutex() 196 (ObjDesc->Mutex.Next)->Mutex.Prev = ObjDesc->Mutex.Prev; in AcpiExUnlinkMutex() 199 if (ObjDesc->Mutex.Prev) in AcpiExUnlinkMutex() 201 (ObjDesc->Mutex.Prev)->Mutex.Next = ObjDesc->Mutex in AcpiExUnlinkMutex() [all...] |
| /freebsd-src/sys/contrib/dev/acpica/components/dispatcher/ |
| H A D | dsmethod.c | 427 /* Create the actual OS Mutex */ in AcpiDsCreateMethodMutex() 429 Status = AcpiOsCreateMutex (&MutexDesc->Mutex.OsMutex); in AcpiDsCreateMethodMutex() 436 MutexDesc->Mutex.SyncLevel = MethodDesc->Method.SyncLevel; in AcpiDsCreateMethodMutex() 437 MethodDesc->Method.Mutex = MutexDesc; in AcpiDsCreateMethodMutex() 497 if (!ObjDesc->Method.Mutex) in AcpiDsBeginMethodExecution() 520 ObjDesc->Method.Mutex->Mutex.SyncLevel)) in AcpiDsBeginMethodExecution() 523 "Cannot acquire Mutex for method [%4.4s]" in AcpiDsBeginMethodExecution() 536 !ObjDesc->Method.Mutex->Mutex in AcpiDsBeginMethodExecution() [all...] |
| /freebsd-src/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | stats.h | 64 void link(LocalStats *S) EXCLUDES(Mutex) { in link() 65 ScopedLock L(Mutex); in link() 69 void unlink(LocalStats *S) EXCLUDES(Mutex) { in unlink() 70 ScopedLock L(Mutex); in unlink() 76 void get(uptr *S) const EXCLUDES(Mutex) { in get() 77 ScopedLock L(Mutex); in get() 89 void lock() ACQUIRE(Mutex) { Mutex.lock(); } in lock() 90 void unlock() RELEASE(Mutex) { Mutex.unlock(); } in unlock() 92 void disable() ACQUIRE(Mutex) { lock(); } in disable() 93 void enable() RELEASE(Mutex) { unlock(); } in enable() [all …]
|
| H A D | tsd.h | 39 if (Mutex.tryLock()) { in tryLock() 51 Mutex.lock(); in lock() 53 inline void unlock() NO_THREAD_SAFETY_ANALYSIS { Mutex.unlock(); } in unlock() 61 void assertLocked(bool BypassCheck) ASSERT_CAPABILITY(Mutex) { in assertLocked() 63 Mutex.assertHeld(); in assertLocked() 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; } in getCache() 76 typename Allocator::QuarantineCacheT &getQuarantineCache() REQUIRES(Mutex) { in getQuarantineCache() 81 HybridMutex Mutex; [all...] |
| H A D | timing.h | 94 Timer getOrCreateTimer(const char *Name) EXCLUDES(Mutex) { in getOrCreateTimer() 95 ScopedLock L(Mutex); in getOrCreateTimer() 129 Timer nest(const Timer &T, const char *Name) EXCLUDES(Mutex) { in nest() 133 ScopedLock L(Mutex); in nest() 139 void report(const Timer &T) EXCLUDES(Mutex) { in report() 140 ScopedLock L(Mutex); in report() 158 void printAll() EXCLUDES(Mutex) { in printAllImpl() 164 void getAll(ScopedString &Str) EXCLUDES(Mutex) { in printAllImpl() 165 ScopedLock L(Mutex); in printAllImpl() 170 void getAllImpl(ScopedString &Str) REQUIRES(Mutex) { 172 REQUIRES(Mutex) REQUIRES() argument 209 HybridMutex Mutex; global() variable [all...] |
| H A D | secondary.h | 177 ScopedLock L(Mutex); in getStats() 218 void store(const Options &Options, LargeBlock::Header *H) EXCLUDES(Mutex) { in store() 251 ScopedLock L(Mutex); in store() 254 // read Options and when we locked Mutex. We can't insert our entry into in store() 299 LargeBlock::Header **H, bool *Zeroed) EXCLUDES(Mutex) { in retrieve() 309 ScopedLock L(Mutex); in retrieve() 411 void disableMemoryTagging() EXCLUDES(Mutex) { in empty() 412 ScopedLock L(Mutex); in empty() 430 void disable() NO_THREAD_SAFETY_ANALYSIS { Mutex.lock(); } in empty() 432 void enable() NO_THREAD_SAFETY_ANALYSIS { Mutex 455 HybridMutex Mutex; global() variable 538 mutable HybridMutex Mutex; global() variable [all...] |
| H A D | tsd_exclusive.h | 55 void init(Allocator *Instance) REQUIRES(Mutex) { in unmapTestOnly() 63 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in drainCaches() 64 ScopedLock L(Mutex); in drainCaches() 70 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { 83 ScopedLock L(Mutex); in getTSDAndLock() 105 Mutex.lock(); in enable() 113 Mutex.unlock(); in setOption() 161 bool Initialized GUARDED_BY(Mutex) = false; in teardownThread() 164 HybridMutex Mutex; in teardownThread() 144 HybridMutex Mutex; global() member
|
| H A D | primary32.h | 110 ScopedLock L(Sci->Mutex); in unmapTestOnly() 134 ScopedLock L1(Sci->Mutex); in verifyAllBlocksAreReleasedTestOnly() 149 ScopedLock L1(Sci->Mutex); in verifyAllBlocksAreReleasedTestOnly() 201 ScopedLock L(Sci->Mutex); in popBlocks() 221 ScopedLock L(Sci->Mutex); in popBatch() 245 ScopedLock L(Sci->Mutex); in pushBlocks() 254 getSizeClassInfo(static_cast<uptr>(I))->Mutex.lock(); in pushBlocks() 256 getSizeClassInfo(SizeClassMap::BatchClassId)->Mutex.lock(); in pushBlocks() 264 getSizeClassInfo(SizeClassMap::BatchClassId)->Mutex.unlock(); in disable() 268 getSizeClassInfo(I)->Mutex in disable() 413 HybridMutex Mutex; global() member [all...] |
| H A D | tsd_shared.h | 50 void init(Allocator *Instance) REQUIRES(Mutex) { in unmapTestOnly() 61 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in drainCaches() 62 ScopedLock L(Mutex); in drainCaches() 68 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { in initThreadMaybe() 74 ScopedLock L(Mutex); 95 Mutex.lock(); in disable() 103 Mutex.unlock(); in enable() 261 bool Initialized GUARDED_BY(Mutex) = false; 262 HybridMutex Mutex; 245 HybridMutex Mutex; global() member
|
| H A D | mutex.h | 85 explicit ScopedLock(HybridMutex &M) ACQUIRE(M) : Mutex(M) { Mutex.lock(); } in ScopedLock() 86 ~ScopedLock() RELEASE() { Mutex.unlock(); } in RELEASE() 89 HybridMutex &Mutex;
|
| H A D | condition_variable_base.h | 21 void bindTestOnly(HybridMutex &Mutex) { in bindTestOnly() argument 23 boundMutex = &Mutex; in bindTestOnly() 25 (void)Mutex; in bindTestOnly()
|
| /freebsd-src/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(); } in ScopedLock() 38 Mutex Μ
|
| /freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/ |
| H A D | MCJIT.cpp | 94 std::lock_guard<sys::Mutex> locked(lock); in ~MCJIT() 106 std::lock_guard<sys::Mutex> locked(lock); in addModule() 115 std::lock_guard<sys::Mutex> locked(lock); in removeModule() 142 std::lock_guard<sys::Mutex> locked(lock); in setObjectCache() 149 std::lock_guard<sys::Mutex> locked(lock); in emitObject() 191 std::lock_guard<sys::Mutex> locked(lock); in generateCodeForModule() 239 std::lock_guard<sys::Mutex> locked(lock); in finalizeLoadedModules() 259 std::lock_guard<sys::Mutex> locked(lock); in finalizeObject() 274 std::lock_guard<sys::Mutex> locked(lock); in finalizeModule() 301 std::lock_guard<sys::Mutex> locked(lock); in findModuleForSymbol() [all …]
|
| /freebsd-src/sys/contrib/dev/acpica/components/utilities/ |
| H A D | utmutex.c | 224 /* Mutex for _OSI support */ in AcpiUtMutexInitialize() 311 if (!AcpiGbl_MutexInfo[MutexId].Mutex) in AcpiUtCreateMutex() 313 Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex); in AcpiUtCreateMutex() 342 AcpiOsDeleteMutex (AcpiGbl_MutexInfo[MutexId].Mutex); in AcpiUtDeleteMutex() 344 AcpiGbl_MutexInfo[MutexId].Mutex = NULL; in AcpiUtDeleteMutex() 385 * Mutex debug code, for internal debugging only. in AcpiUtAcquireMutex() 399 "Mutex [%s] already acquired by this thread [%u]", in AcpiUtAcquireMutex() 418 "Thread %u attempting to acquire Mutex [%s]\n", in AcpiUtAcquireMutex() 422 AcpiGbl_MutexInfo[MutexId].Mutex, ACPI_WAIT_FOREVER); in AcpiUtAcquireMutex() 426 "Thread %u acquired Mutex [ in AcpiUtAcquireMutex() [all...] |
| H A D | utdelete.c | 288 "***** Mutex %p, OS Mutex %p\n", in AcpiUtDeleteInternalObj() 289 Object, Object->Mutex.OsMutex)); in AcpiUtDeleteInternalObj() 298 AcpiOsDeleteMutex (Object->Mutex.OsMutex); in AcpiUtDeleteInternalObj() 304 AcpiOsDeleteMutex (Object->Mutex.OsMutex); in AcpiUtDeleteInternalObj() 325 if (Object->Method.Mutex) in AcpiUtDeleteInternalObj() 327 AcpiOsDeleteMutex (Object->Method.Mutex->Mutex.OsMutex); in AcpiUtDeleteInternalObj() 328 AcpiUtDeleteObjectDesc (Object->Method.Mutex); in AcpiUtDeleteInternalObj() 329 Object->Method.Mutex in AcpiUtDeleteInternalObj() [all...] |
| /freebsd-src/contrib/llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_allocator.h | 178 SpinMutex Mutex{}; 181 SpinMutexLock Lock(&Mutex); in Alloc() 231 Mutex() {} in Allocator() 239 Mutex() {} in Allocator() 245 SpinMutexLock L0(&Mutex); in Allocator() 246 SpinMutexLock L1(&O.Mutex); in Allocator() 260 SpinMutexLock L0(&Mutex); 261 SpinMutexLock L1(&O.Mutex);
|
| /freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_mutex.h | 161 class SANITIZER_MUTEX Mutex : CheckedMutex { 163 explicit constexpr Mutex(MutexType type = MutexUnchecked) 371 Mutex(LinkerInitialized) = delete; 372 Mutex(const Mutex &) = delete; 373 void operator=(const Mutex &) = delete; 440 typedef GenericScopedLock<Mutex> Lock; 441 typedef GenericScopedReadLock<Mutex> ReadLock; 442 typedef GenericScopedRWLock<Mutex> RWLock;
|
| /freebsd-src/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); } in lock() 16 bool Mutex::tryLock() __TA_NO_THREAD_SAFETY_ANALYSIS { in tryLock() 20 void Mutex::unlock() __TA_NO_THREAD_SAFETY_ANALYSIS { sync_mutex_unlock(&Mu); } in unlock()
|
| H A D | mutex_posix.cpp | 15 void Mutex::lock() { in lock() 22 bool Mutex::tryLock() { return pthread_mutex_trylock(&Mu) == 0; } in tryLock() 24 void Mutex::unlock() { in unlock()
|
| /freebsd-src/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); } in Mutex() function in Mutex 34 ~Mutex() { pthread_mutex_destroy(&m_); } in ~Mutex() 43 Mutex mutexes[kNumMutexes];
|
| /freebsd-src/contrib/googletest/googletest/include/gtest/internal/ |
| H A D | gtest-port.h | 226 // Mutex, MutexLock, ThreadLocal, GetThreadCount() 1397 // Mutex and ThreadLocal have already been imported into the namespace. 1403 // Mutex implements mutex on Windows platforms. It is used in conjunction 1406 // Mutex mutex; 1411 // A static Mutex *must* be defined or declared using one of the following 1416 // (A non-static Mutex is defined/declared in the usual way). 1417 class GTEST_API_ Mutex { 1428 explicit Mutex(StaticConstructorSelector /*dummy*/) {} 1430 Mutex(); 1431 ~Mutex(); [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/ |
| H A D | PerfJITEventListener.cpp | 94 sys::Mutex Mutex; member in __anon76325e0f0111::PerfJITEventListener 287 std::lock_guard<sys::Mutex> Guard(Mutex); in notifyObjectLoaded() 426 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyCode() 468 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyDebug()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Parallel.cpp | 57 std::lock_guard<std::mutex> Lock(Mutex); in ThreadPoolExecutor() 74 std::lock_guard<std::mutex> Lock(Mutex); in stop() 102 std::lock_guard<std::mutex> Lock(Mutex); in add() 115 std::unique_lock<std::mutex> Lock(Mutex); in hasSequentialTasks() 128 std::mutex Mutex; in work() 151 std::mutex Mutex; global() member in llvm::parallel::detail::__anond4bef43b0111::ThreadPoolExecutor
|
| /freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | MemoryMapper.cpp | 54 std::lock_guard<std::mutex> Lock(Mutex); in reserve() 99 std::lock_guard<std::mutex> Lock(Mutex); in initialize() 117 std::lock_guard<std::mutex> Lock(Mutex); in deinitialize() 149 std::lock_guard<std::mutex> Lock(Mutex); in release() 171 std::lock_guard<std::mutex> Lock(Mutex); in release() 181 std::lock_guard<std::mutex> Lock(Mutex); in ~InProcessMemoryMapper() 301 std::lock_guard<std::mutex> Lock(Mutex); in prepare() 393 std::lock_guard<std::mutex> Lock(Mutex); in release() 441 std::lock_guard<std::mutex> Lock(Mutex);
|
| /freebsd-src/contrib/netbsd-tests/lib/libobjc/ |
| H A D | t_threads.m | 45 static objc_mutex_t Mutex; 113 Mutex = objc_mutex_allocate(); 122 objc_mutex_lock(Mutex); 123 objc_condition_wait(Condition, Mutex); 124 objc_mutex_unlock(Mutex);
|