Home
last modified time | relevance | path

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

123456

/freebsd/sys/contrib/dev/acpica/components/executer/
H A Dexmutex.c184 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.Next; in AcpiExUnlinkMutex()
209 (ObjDesc->Mutex.Prev)->Mutex.OriginalSyncLevel = in AcpiExUnlinkMutex()
210 ObjDesc->Mutex.OriginalSyncLevel; in AcpiExUnlinkMutex()
214 Thread->AcquiredMutexList = ObjDesc->Mutex.Next; in AcpiExUnlinkMutex()
244 ObjDesc->Mutex.Prev = NULL; in AcpiExLinkMutex()
245 ObjDesc->Mutex.Next = ListHead; in AcpiExLinkMutex()
[all …]
/freebsd/sys/contrib/dev/acpica/components/dispatcher/
H A Ddsmethod.c429 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()
536 !ObjDesc->Method.Mutex->Mutex.ThreadId || in AcpiDsBeginMethodExecution()
538 ObjDesc->Method.Mutex->Mutex.ThreadId)) in AcpiDsBeginMethodExecution()
545 ObjDesc->Method.Mutex->Mutex.OsMutex, ACPI_WAIT_FOREVER); in AcpiDsBeginMethodExecution()
555 ObjDesc->Method.Mutex->Mutex.OriginalSyncLevel = in AcpiDsBeginMethodExecution()
558 ObjDesc->Method.Mutex->Mutex.ThreadId = in AcpiDsBeginMethodExecution()
[all …]
/freebsd/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()
76 REQUIRES(Mutex) { in getSizeClassAllocator()
79 typename Allocator::QuarantineCacheT &getQuarantineCache() REQUIRES(Mutex) { in getQuarantineCache()
84 HybridMutex Mutex;
87 typename Allocator::SizeClassAllocatorT SizeClassAllocator GUARDED_BY(Mutex);
88 typename Allocator::QuarantineCacheT QuarantineCache GUARDED_BY(Mutex);
H A Dtiming.h98 Timer getOrCreateTimer(const char *Name) EXCLUDES(Mutex) { in getOrCreateTimer()
99 ScopedLock L(Mutex); in getOrCreateTimer()
133 Timer nest(const Timer &T, const char *Name) EXCLUDES(Mutex) { in nest()
137 ScopedLock L(Mutex); in nest()
143 void report(const Timer &T) EXCLUDES(Mutex) { in report()
144 ScopedLock L(Mutex); in report()
162 void printAll() EXCLUDES(Mutex) { in printAll()
168 void getAll(ScopedString &Str) EXCLUDES(Mutex) { in getAll()
169 ScopedLock L(Mutex); in getAll()
174 void getAllImpl(ScopedString &Str) REQUIRES(Mutex) { in getAllImpl()
[all …]
H A Dsecondary.h203 ScopedLock L(Mutex); in getStats()
259 uptr BlockBegin, MemMapT MemMap) EXCLUDES(Mutex) { in store()
296 ScopedLock L(Mutex); in store()
351 if (Mutex.tryLock()) { in store()
354 Mutex.unlock(); in store()
362 EXCLUDES(Mutex) { in retrieve()
370 ScopedLock L(Mutex); in retrieve()
500 void releaseToOS() EXCLUDES(Mutex) { in releaseToOS()
503 ScopedLock L(Mutex); in releaseToOS()
507 void disableMemoryTagging() EXCLUDES(Mutex) { in disableMemoryTagging()
[all …]
H A Dprimary32.h166 HybridMutex Mutex; member
167 BlocksInfo FreeListInfo GUARDED_BY(Mutex);
168 uptr CurrentRegion GUARDED_BY(Mutex);
169 uptr CurrentRegionAllocated GUARDED_BY(Mutex);
171 uptr AllocatedUser GUARDED_BY(Mutex);
174 uptr MinRegionIndex GUARDED_BY(Mutex);
175 uptr MaxRegionIndex GUARDED_BY(Mutex);
176 ReleaseToOsInfo ReleaseInfo GUARDED_BY(Mutex);
186 uptr allocateRegion(SizeClassInfo *Sci, uptr ClassId) REQUIRES(Sci->Mutex);
195 REQUIRES(Sci->Mutex);
[all …]
H A Dtsd_exclusive.h55 void init(Allocator *Instance) REQUIRES(Mutex) { in init()
63 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in initOnceMaybe()
64 ScopedLock L(Mutex); in initOnceMaybe()
70 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { in unmapTestOnly()
83 ScopedLock L(Mutex); in unmapTestOnly()
105 Mutex.lock(); in disable()
113 Mutex.unlock(); in enable()
161 bool Initialized GUARDED_BY(Mutex) = false;
164 HybridMutex Mutex; member
H A Dtsd_shared.h50 void init(Allocator *Instance) REQUIRES(Mutex) { in init()
61 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in initOnceMaybe()
62 ScopedLock L(Mutex); in initOnceMaybe()
68 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { in unmapTestOnly()
74 ScopedLock L(Mutex); in unmapTestOnly()
95 Mutex.lock(); in disable()
103 Mutex.unlock(); in enable()
261 bool Initialized GUARDED_BY(Mutex) = false;
262 HybridMutex Mutex; member
H A Dmutex.h85 explicit ScopedLock(HybridMutex &M) ACQUIRE(M) : Mutex(M) { Mutex.lock(); }
86 ~ScopedLock() RELEASE() { Mutex.unlock(); }
89 HybridMutex &Mutex;
/freebsd/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 Μ
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DStreamFile.h77 using Mutex = std::recursive_mutex;
79 LockableStreamFile(std::shared_ptr<StreamFile> stream_file_sp, Mutex &mutex) in LockableStreamFile()
81 LockableStreamFile(StreamFile &stream_file, Mutex &mutex) in LockableStreamFile()
83 LockableStreamFile(FILE *fh, bool transfer_ownership, Mutex &mutex) in LockableStreamFile()
86 LockableStreamFile(std::shared_ptr<File> file_sp, Mutex &mutex) in LockableStreamFile()
100 Mutex &m_mutex;
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp93 std::lock_guard<sys::Mutex> locked(lock); in ~MCJIT()
105 std::lock_guard<sys::Mutex> locked(lock); in addModule()
114 std::lock_guard<sys::Mutex> locked(lock); in removeModule()
141 std::lock_guard<sys::Mutex> locked(lock); in setObjectCache()
148 std::lock_guard<sys::Mutex> locked(lock); in emitObject()
190 std::lock_guard<sys::Mutex> locked(lock); in generateCodeForModule()
238 std::lock_guard<sys::Mutex> locked(lock); in finalizeLoadedModules()
258 std::lock_guard<sys::Mutex> locked(lock); in finalizeObject()
271 std::lock_guard<sys::Mutex> locked(lock); in finalizeModule()
298 std::lock_guard<sys::Mutex> locked(lock); in findModuleForSymbol()
[all …]
/freebsd/sys/contrib/dev/acpica/components/utilities/
H A Dutmutex.c311 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()
422 AcpiGbl_MutexInfo[MutexId].Mutex, ACPI_WAIT_FOREVER); in AcpiUtAcquireMutex()
516 AcpiOsReleaseMutex (AcpiGbl_MutexInfo[MutexId].Mutex); in AcpiUtReleaseMutex()
H A Dutdelete.c289 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 = NULL; in AcpiUtDeleteInternalObj()
/freebsd/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/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DInProcessModuleCache.cpp27 ReaderWriterLock(std::shared_mutex &Mutex) in ReaderWriterLock() argument
28 : OwningLock(Mutex, std::defer_lock) {} in ReaderWriterLock()
69 std::lock_guard<std::mutex> Lock(Entries.Mutex); in getLock()
80 std::lock_guard<std::mutex> Lock(Entries.Mutex); in getModuleTimestamp()
93 std::lock_guard<std::mutex> Lock(Entries.Mutex); in updateModuleTimestamp()
/freebsd/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/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/contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/
H A DPerfJITEventListener.cpp66 std::lock_guard<sys::Mutex> Guard(Mutex); in ~PerfJITEventListener()
98 sys::Mutex Mutex; member in __anon2110d7bd0111::PerfJITEventListener
290 std::lock_guard<sys::Mutex> Guard(Mutex); in notifyObjectLoaded()
429 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyCode()
471 std::lock_guard<sys::Mutex> Guard(Mutex); in NotifyDebug()
/freebsd/contrib/llvm-project/libc/src/__support/threads/linux/
H A Dmutex.h23 class Mutex final : private RawMutex {
35 LIBC_INLINE constexpr Mutex(bool is_timed, bool is_recursive, bool is_robust, in Mutex() function
40 LIBC_INLINE static MutexError init(Mutex *mutex, bool is_timed, bool isrecur, in init()
52 LIBC_INLINE static MutexError destroy(Mutex *lock) { in destroy()
/freebsd/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/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-port.h1385 class GTEST_API_ Mutex {
1396 explicit Mutex(StaticConstructorSelector /*dummy*/) {}
1398 Mutex();
1399 ~Mutex();
1423 Mutex(const Mutex&) = delete;
1424 Mutex& operator=(const Mutex&) = delete;
1428 extern ::testing::internal::Mutex mutex
1431 ::testing::internal::Mutex mutex(::testing::internal::Mutex::kStaticMutex)
1440 explicit GTestMutexLock(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); }
1445 Mutex* const mutex_;
[all …]
/freebsd/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 work()
128 std::mutex Mutex; member in llvm::parallel::detail::__anoncc39f2690111::ThreadPoolExecutor

123456