Home
last modified time | relevance | path

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

123456

/netbsd-src/sys/external/bsd/acpica/dist/executer/
H A Dexmutex.c76 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; in AcpiExUnlinkMutex()
86 if (ObjDesc->Mutex.Next) in AcpiExUnlinkMutex()
88 (ObjDesc->Mutex.Next)->Mutex.Prev = ObjDesc->Mutex.Prev; in AcpiExUnlinkMutex()
91 if (ObjDesc->Mutex.Prev) in AcpiExUnlinkMutex()
93 (ObjDesc->Mutex.Prev)->Mutex.Next = ObjDesc->Mutex.Next; in AcpiExUnlinkMutex()
101 (ObjDesc->Mutex.Prev)->Mutex.OriginalSyncLevel = in AcpiExUnlinkMutex()
102 ObjDesc->Mutex.OriginalSyncLevel; in AcpiExUnlinkMutex()
106 Thread->AcquiredMutexList = ObjDesc->Mutex.Next; in AcpiExUnlinkMutex()
136 ObjDesc->Mutex.Prev = NULL; in AcpiExLinkMutex()
137 ObjDesc->Mutex.Next = ListHead; in AcpiExLinkMutex()
[all …]
/netbsd-src/sys/external/bsd/acpica/dist/dispatcher/
H A Ddsmethod.c321 Status = AcpiOsCreateMutex (&MutexDesc->Mutex.OsMutex); in AcpiDsCreateMethodMutex()
328 MutexDesc->Mutex.SyncLevel = MethodDesc->Method.SyncLevel; in AcpiDsCreateMethodMutex()
329 MethodDesc->Method.Mutex = MutexDesc; in AcpiDsCreateMethodMutex()
389 if (!ObjDesc->Method.Mutex) in AcpiDsBeginMethodExecution()
412 ObjDesc->Method.Mutex->Mutex.SyncLevel)) in AcpiDsBeginMethodExecution()
428 !ObjDesc->Method.Mutex->Mutex.ThreadId || in AcpiDsBeginMethodExecution()
430 ObjDesc->Method.Mutex->Mutex.ThreadId)) in AcpiDsBeginMethodExecution()
437 ObjDesc->Method.Mutex->Mutex.OsMutex, ACPI_WAIT_FOREVER); in AcpiDsBeginMethodExecution()
447 ObjDesc->Method.Mutex->Mutex.OriginalSyncLevel = in AcpiDsBeginMethodExecution()
450 ObjDesc->Method.Mutex->Mutex.ThreadId = in AcpiDsBeginMethodExecution()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/
H A Dtsan_test_util.h32 class Mutex {
44 explicit Mutex(Type type = Normal);
45 ~Mutex();
63 Mutex(const Mutex&);
64 void operator = (const Mutex&);
104 void Create(const Mutex &m);
105 void Destroy(const Mutex &m);
106 void Lock(const Mutex &m);
107 bool TryLock(const Mutex &m);
108 void Unlock(const Mutex &m);
[all …]
H A Dtsan_test_util_posix.cc92 Mutex::Mutex(Type type) in Mutex() function in Mutex
97 Mutex::~Mutex() { in ~Mutex()
101 void Mutex::Init() { in Init()
116 void Mutex::StaticInit() { in StaticInit()
124 void Mutex::Destroy() { in Destroy()
137 void Mutex::Lock() { in Lock()
149 bool Mutex::TryLock() { in TryLock()
162 void Mutex::Unlock() { in Unlock()
174 void Mutex::ReadLock() { in ReadLock()
180 bool Mutex::TryReadLock() { in TryReadLock()
[all …]
H A Dtsan_mutex.cc24 Mutex m; in TEST()
42 Mutex m(Mutex::Spin); in TEST()
60 Mutex m(Mutex::RW); in TEST()
95 TEST(ThreadSanitizer, Mutex) { in TEST() argument
96 Mutex m; in TEST()
112 Mutex m(Mutex::Spin); in TEST()
128 Mutex m(Mutex::RW); in TEST()
154 Mutex m; in TEST()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sync/
H A Dmutex.d51 class Mutex :
76 if (is(Q == Mutex) || is(Q == shared Mutex))
124 if (is(Q == Mutex) || is(Q == shared Mutex))
181 if (is(Q == Mutex) || is(Q == shared Mutex))
219 if (is(Q == Mutex) || is(Q == shared Mutex))
261 if (is(Q == Mutex) || is(Q == shared Mutex))
311 Mutex mtx;
316 mtx = new shared Mutex(); in this()
350 auto mtx = cast(shared Mutex) malloc(__traits(classInstanceSize, Mutex));
369 (cast(Mutex) mtx).__dtor();
[all …]
H A Dcondition.d77 this( Mutex m ) nothrow @safe in this()
83 this( shared Mutex m ) shared nothrow @safe in this()
90 if ((is(Q == Condition) && is(M == Mutex)) ||
91 (is(Q == shared Condition) && is(M == shared Mutex)))
177 @property Mutex mutex() in mutex()
183 @property shared(Mutex) mutex() shared in shared() argument
189 final @property Mutex mutex_nothrow() pure nothrow @safe @nogc in mutex_nothrow()
195 final @property shared(Mutex) mutex_nothrow() shared pure nothrow @safe @nogc in shared() argument
232 …int rc = pthread_cond_wait( cast(pthread_cond_t*) &m_hndl, (cast(Mutex) m_assocMutex).handleAddr()… in version()
293 (cast(Mutex) m_assocMutex).handleAddr(), in version()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_mutex.h43 class Mutex {
45 explicit Mutex(MutexType type, StatType stat_type);
46 ~Mutex();
65 Mutex(const Mutex&);
66 void operator = (const Mutex&);
69 typedef GenericScopedLock<Mutex> Lock;
70 typedef GenericScopedReadLock<Mutex> ReadLock;
H A Dtsan_mutex.cc211 Mutex::Mutex(MutexType type, StatType stat_type) { in Mutex() function in __tsan::Mutex
223 Mutex::~Mutex() { in ~Mutex()
227 void Mutex::Lock() { in Lock()
249 void Mutex::Unlock() { in Unlock()
258 void Mutex::ReadLock() { in ReadLock()
276 void Mutex::ReadUnlock() { in ReadUnlock()
286 void Mutex::CheckLocked() { in CheckLocked()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/
H A Dtsan_mutex.h41 class Mutex {
43 explicit Mutex(MutexType type, StatType stat_type);
44 ~Mutex();
63 Mutex(const Mutex&);
64 void operator = (const Mutex&);
67 typedef GenericScopedLock<Mutex> Lock;
68 typedef GenericScopedReadLock<Mutex> ReadLock;
H A Dtsan_mutex.cc209 Mutex::Mutex(MutexType type, StatType stat_type) { in Mutex() function in __tsan::Mutex
221 Mutex::~Mutex() { in ~Mutex()
225 void Mutex::Lock() { in Lock()
247 void Mutex::Unlock() { in Unlock()
256 void Mutex::ReadLock() { in ReadLock()
274 void Mutex::ReadUnlock() { in ReadUnlock()
284 void Mutex::CheckLocked() { in CheckLocked()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/rt/
H A Dcritical_.d23 initMutex(cast(Mutex*)&gcs.mtx); in _d_critical_init()
33 destroyMutex(cast(Mutex*)&p.mtx); in _d_critical_term()
47 lockMutex(cast(Mutex*)&gcs.mtx); in _d_criticalenter2()
51 initMutex(cast(Mutex*)&cs.mtx); in _d_criticalenter2()
54 unlockMutex(cast(Mutex*)&gcs.mtx); in _d_criticalenter2()
73 Mutex mtx;
80 lockMutex(cast(Mutex*)&gcs.mtx); in ensureMutex()
83 initMutex(cast(Mutex*)&cs.mtx); in ensureMutex()
88 unlockMutex(cast(Mutex*)&gcs.mtx); in ensureMutex()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
H A Dtsan_mutex_test.cc96 TEST(Mutex, Write) { in TEST() argument
97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); in TEST()
98 TestData<Mutex> data(&mtx); in TEST()
101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); in TEST()
106 TEST(Mutex, ReadWrite) { in TEST() argument
107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); in TEST()
108 TestData<Mutex> data(&mtx); in TEST()
111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); in TEST()
116 TEST(Mutex, SpinWrite) { in TEST() argument
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/
H A Dcritical_.d22 initMutex(cast(Mutex*)&gcs.mtx); in _d_critical_init()
29 destroyMutex(cast(Mutex*)&p.mtx); in _d_critical_term()
51 Mutex mtx;
58 lockMutex(cast(Mutex*)&gcs.mtx); in ensureMutex()
61 initMutex(cast(Mutex*)&cs.mtx); in ensureMutex()
66 unlockMutex(cast(Mutex*)&gcs.mtx); in ensureMutex()
H A Dmonitor_.d172 alias Mutex = int; in version() local
174 void initMutex(Mutex* mtx) in version()
178 void destroyMutex(Mutex* mtx) in version()
182 void lockMutex(Mutex* mtx) in version()
186 void unlockMutex(Mutex* mtx) in version()
199 alias Mutex = CRITICAL_SECTION; in version() local
211 alias Mutex = pthread_mutex_t; in version()
244 Mutex mtx;
264 __gshared Mutex gmtx;
/netbsd-src/external/apache2/llvm/dist/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()
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 …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc75 struct Mutex { struct
103 Mutex *getMutex(u32 id);
104 u32 getMutexId(Mutex *m);
108 Mutex* mutex[kL1Size];
154 Mutex *DD::getMutex(u32 id) { in getMutex()
158 u32 DD::getMutexId(Mutex *m) { in getMutexId()
160 Mutex *tab = mutex[i]; in getMutexId()
178 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex), in allocateId()
218 Mutex *mtx = getMutex(m->id); in MutexBeforeLock()
222 Mutex *mtx1 = getMutex(id1); in MutexBeforeLock()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc77 struct Mutex { struct
105 Mutex *getMutex(u32 id);
106 u32 getMutexId(Mutex *m);
110 Mutex* mutex[kL1Size];
156 Mutex *DD::getMutex(u32 id) { in getMutex()
160 u32 DD::getMutexId(Mutex *m) { in getMutexId()
162 Mutex *tab = mutex[i]; in getMutexId()
180 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex), in allocateId()
220 Mutex *mtx = getMutex(m->id); in MutexBeforeLock()
224 Mutex *mtx1 = getMutex(id1); in MutexBeforeLock()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/
H A Dxray_allocator.h179 SpinMutex Mutex{};
182 SpinMutexLock Lock(&Mutex); in Alloc()
232 Mutex() {} in Allocator()
240 Mutex() {} in Allocator()
246 SpinMutexLock L0(&Mutex); in Allocator()
247 SpinMutexLock L1(&O.Mutex); in Allocator()
261 SpinMutexLock L0(&Mutex);
262 SpinMutexLock L1(&O.Mutex);
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_mutex.h159 class MUTEX Mutex : CheckedMutex {
161 explicit constexpr Mutex(MutexType type = MutexUnchecked)
355 Mutex(LinkerInitialized) = delete;
356 Mutex(const Mutex &) = delete;
357 void operator=(const Mutex &) = delete;
423 typedef GenericScopedLock<Mutex> Lock;
424 typedef GenericScopedReadLock<Mutex> ReadLock;
425 typedef GenericScopedRWLock<Mutex> RWLock;
/netbsd-src/sys/external/bsd/acpica/dist/utilities/
H A Dutmutex.c203 if (!AcpiGbl_MutexInfo[MutexId].Mutex) in AcpiUtCreateMutex()
205 Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex); in AcpiUtCreateMutex()
234 AcpiOsDeleteMutex (AcpiGbl_MutexInfo[MutexId].Mutex); in AcpiUtDeleteMutex()
236 AcpiGbl_MutexInfo[MutexId].Mutex = NULL; in AcpiUtDeleteMutex()
314 AcpiGbl_MutexInfo[MutexId].Mutex, ACPI_WAIT_FOREVER); in AcpiUtAcquireMutex()
408 AcpiOsReleaseMutex (AcpiGbl_MutexInfo[MutexId].Mutex); in AcpiUtReleaseMutex()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp38 std::lock_guard<std::mutex> Guard(Mutex); in insertFile()
58 std::lock_guard<std::mutex> Guard(Mutex); in encode()
191 std::lock_guard<std::mutex> Guard(Mutex); in finalize()
299 std::lock_guard<std::mutex> Guard(Mutex); in insertString()
315 std::lock_guard<std::mutex> Guard(Mutex); in addFunctionInfo()
322 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo()
331 std::lock_guard<std::mutex> Guard(Mutex); in forEachFunctionInfo()
339 std::lock_guard<std::mutex> Guard(Mutex); in getNumFunctionInfos()
350 std::lock_guard<std::mutex> Guard(Mutex); in hasFunctionInfoForAddress()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DParallel.cpp49 std::lock_guard<std::mutex> Lock(Mutex); in ThreadPoolExecutor()
63 std::lock_guard<std::mutex> Lock(Mutex); in stop()
91 std::lock_guard<std::mutex> Lock(Mutex); in add()
101 std::unique_lock<std::mutex> Lock(Mutex); in work()
114 std::mutex Mutex; member in llvm::parallel::detail::__anon096d2ab40111::ThreadPoolExecutor
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/gcc/
H A Demutls.d66 enum mutexAlign = classInstanceAlignment!Mutex;
67 enum mutexClassInstanceSize = __traits(classInstanceSize, Mutex);
70 @property Mutex emutlsMutex() nothrow @nogc
72 return cast(Mutex) _emutlsMutex.ptr;
80 memcpy(_emutlsMutex.ptr, typeid(Mutex).initializer.ptr, _emutlsMutex.length); in _d_emutls_init()
81 (cast(Mutex) _emutlsMutex.ptr).__ctor(); in _d_emutls_init()
308 (cast(Mutex) _emutlsMutex.ptr).__dtor(); in _d_emutls_destroy()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/gcc/
H A Demutls.d67 enum mutexAlign = classInstanceAlignment!Mutex;
68 enum mutexClassInstanceSize = __traits(classInstanceSize, Mutex);
71 @property Mutex emutlsMutex() nothrow @nogc
73 return cast(Mutex) _emutlsMutex.ptr;
81 memcpy(_emutlsMutex.ptr, typeid(Mutex).initializer.ptr, _emutlsMutex.length); in _d_emutls_init()
82 (cast(Mutex) _emutlsMutex.ptr).__ctor(); in _d_emutls_init()
309 (cast(Mutex) _emutlsMutex.ptr).__dtor(); in _d_emutls_destroy()

123456