Home
last modified time | relevance | path

Searched refs:Mutex (Results 1 – 25 of 116) sorted by relevance

12345

/freebsd-src/sys/contrib/dev/acpica/components/executer/
H A Dexmutex.c3 * 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 Ddsmethod.c427 /* 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 Dstats.h64 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 Dtsd.h39 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 Dtiming.h94 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 Dsecondary.h177 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 Dtsd_exclusive.h55 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 Dprimary32.h110 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 Dtsd_shared.h50 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 Dmutex.h85 explicit ScopedLock(HybridMutex &M) ACQUIRE(M) : Mutex(M) { Mutex.lock(); } in ScopedLock()
86 ~ScopedLock() RELEASE() { Mutex.unlock(); } in RELEASE()
89 HybridMutex &Mutex;
H A Dcondition_variable_base.h21 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 Dmutex.h16 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 &Mu;
/freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp94 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 Dutmutex.c224 /* 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 Dutdelete.c288 "***** 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 Dxray_allocator.h178 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 Dsanitizer_mutex.h161 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 Dmutex_fuchsia.cpp14 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 Dmutex_posix.cpp15 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 Dvts_many_threads_bench.cpp31 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 Dgtest-port.h226 // 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 DPerfJITEventListener.cpp94 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 DParallel.cpp57 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 DMemoryMapper.cpp54 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 Dt_threads.m45 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);

12345