/src/sys/external/bsd/acpica/dist/executer/ |
exmutex.c | 3 * Module Name: exmutex - ASL Mutex Acquire/Release functions 172 * PARAMETERS: ObjDesc - The mutex to be unlinked 176 * DESCRIPTION: Remove a mutex from the "AcquiredMutex" list 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.Next [all...] |
exsystem.c | 216 * PARAMETERS: Mutex - Mutex to wait on 221 * DESCRIPTION: Implements a mutex wait with a check to see if the 222 * mutex is available immediately. If it is not, the 229 ACPI_MUTEX Mutex, 238 Status = AcpiOsAcquireMutex (Mutex, ACPI_DO_NOT_WAIT); 249 Status = AcpiOsAcquireMutex (Mutex, Timeout);
|
excreate.c | 308 * DESCRIPTION: Create a new mutex object 310 * Mutex (Name[0], SyncLevel[1]) 325 /* Create the new mutex object */ 334 /* Create the actual OS Mutex */ 336 Status = AcpiOsCreateMutex (&ObjDesc->Mutex.OsMutex); 344 ObjDesc->Mutex.SyncLevel = (UINT8) WalkState->Operands[1]->Integer.Value; 345 ObjDesc->Mutex.Node = (ACPI_NAMESPACE_NODE *) WalkState->Operands[0]; 348 ObjDesc->Mutex.Node, ObjDesc, ACPI_TYPE_MUTEX); 631 * Get the SyncLevel. If method is serialized, a mutex will be
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
tsan_mutex.h | 43 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;
|
tsan_mutex.cc | 20 // Simple reader-writer spin-mutex. Optimized for not-so-contended case. 25 // then Report mutex can be locked while under Threads mutex. 55 // If [i][j]==true, then one can lock mutex j while under mutex i. 123 Printf("Mutex %d participates in a cycle\n", i); 211 Mutex::Mutex(MutexType type, StatType stat_type) { 223 Mutex::~Mutex() { [all...] |
tsan_trace.h | 59 Mutex mtx;
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
tsan_test_util.h | 32 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) [all...] |
tsan_test_util_posix.cc | 92 Mutex::Mutex(Type type) 97 Mutex::~Mutex() { 101 void Mutex::Init() { 116 void Mutex::StaticInit() { 124 void Mutex::Destroy() { 137 void Mutex::Lock() { 149 bool Mutex::TryLock() { 162 void Mutex::Unlock() [all...] |
tsan_mutex.cc | 24 Mutex m; 42 Mutex m(Mutex::Spin); 60 Mutex m(Mutex::RW); 95 TEST(ThreadSanitizer, Mutex) { 96 Mutex m; 112 Mutex m(Mutex::Spin); 128 Mutex m(Mutex::RW) [all...] |
tsan_mop.cc | 69 Mutex m(Mutex::RW); 88 Mutex m(Mutex::RW);
|
tsan_bench.cc | 93 Mutex m;
|
/src/sys/external/bsd/acpica/dist/dispatcher/ |
dsmethod.c | 291 * Mark the method as serialized. Later code will create a mutex for 404 * DESCRIPTION: Create a mutex object for a serialized control method 419 /* Create the new mutex object */ 427 /* Create the actual OS Mutex */ 429 Status = AcpiOsCreateMutex (&MutexDesc->Mutex.OsMutex); 436 MutexDesc->Mutex.SyncLevel = MethodDesc->Method.SyncLevel; 437 MethodDesc->Method.Mutex = MutexDesc; 488 * If this method is serialized, we need to acquire the method mutex. 493 * Create a mutex for the method if it is defined to be Serialized 494 * and a mutex has not already been created. We defer the mutex creatio [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
tsan_mutex_test.cc | 96 TEST(Mutex, Write) { 97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); 98 TestData<Mutex> data(&mtx); 101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); 106 TEST(Mutex, ReadWrite) { 107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations); 108 TestData<Mutex> data(&mtx); 111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); 116 TEST(Mutex, SpinWrite) {
|
/src/tests/lib/libobjc/ |
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);
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/dd/ |
dd_rtl.h | 23 struct Mutex { 41 typedef AddrHashMap<Mutex, 31051> MutexHashMap;
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/ |
vts_many_threads_bench.cc | 31 class __attribute__((aligned(64))) Mutex { 33 Mutex() { pthread_mutex_init(&m_, NULL); } 34 ~Mutex() { pthread_mutex_destroy(&m_); } 43 Mutex mutexes[kNumMutexes];
|
/src/sys/external/bsd/acpica/dist/utilities/ |
utmutex.c | 3 * Module Name: utmutex - local mutex support 177 * DESCRIPTION: Create the system mutex objects. This includes mutexes, 193 /* Create each of the predefined mutex objects */ 224 /* Mutex for _OSI support */ 252 * DESCRIPTION: Delete all of the system mutex objects. This includes mutexes, 267 /* Delete each predefined mutex object */ 293 * PARAMETERS: MutexID - ID of the mutex to be created 297 * DESCRIPTION: Create a mutex object. 311 if (!AcpiGbl_MutexInfo[MutexId].Mutex) 313 Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex); [all...] |
utxfmutex.c | 3 * Module Name: utxfmutex - external AML mutex access functions 174 * PARAMETERS: Handle - Mutex or prefix handle (optional) 175 * Pathname - Mutex pathname (optional) 176 * RetObj - Where the mutex object is returned 180 * DESCRIPTION: Get an AML mutex object. The mutex node is pointed to by 204 /* Get a the namespace node for the mutex */ 217 /* Ensure that we actually have a Mutex object */ 225 /* Get the low-level mutex object */ 242 * PARAMETERS: Handle - Mutex or prefix handle (optional [all...] |
utdelete.c | 288 "***** Mutex %p, OS Mutex %p\n", 289 Object, Object->Mutex.OsMutex)); 298 AcpiOsDeleteMutex (Object->Mutex.OsMutex); 304 AcpiOsDeleteMutex (Object->Mutex.OsMutex); 323 /* Delete the method mutex if it exists */ 325 if (Object->Method.Mutex) 327 AcpiOsDeleteMutex (Object->Method.Mutex->Mutex.OsMutex); 328 AcpiUtDeleteObjectDesc (Object->Method.Mutex); [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/xray/ |
xray_allocator.h | 179 SpinMutex Mutex{}; 182 SpinMutexLock Lock(&Mutex); 232 Mutex() {} 240 Mutex() {} 246 SpinMutexLock L0(&Mutex); 247 SpinMutexLock L1(&O.Mutex); 261 SpinMutexLock L0(&Mutex); 262 SpinMutexLock L1(&O.Mutex);
|
xray_buffer_queue.cc | 72 SpinMutexLock Guard(&Mutex); 150 Mutex(), 168 SpinMutexLock Guard(&Mutex); 190 SpinMutexLock Guard(&Mutex);
|
xray_buffer_queue.h | 141 SpinMutex Mutex; 257 SpinMutexLock G(&Mutex);
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_deadlock_detector2.cc | 77 struct Mutex { 105 Mutex *getMutex(u32 id); 106 u32 getMutexId(Mutex *m); 110 Mutex* mutex[kL1Size]; member in struct:__sanitizer::DD 156 Mutex *DD::getMutex(u32 id) { 157 return &mutex[id / kL2Size][id % kL2Size]; 160 u32 DD::getMutexId(Mutex *m) { 162 Mutex *tab = mutex[i] [all...] |
/src/sys/external/bsd/acpica/dist/events/ |
evglock.c | 330 * MUTEX: Interpreter must be locked 338 * the global lock appear as a standard mutex on the OS side. 358 Status = AcpiExSystemWaitMutex (AcpiGbl_GlobalLockMutex->Mutex.OsMutex, 381 * treat the lock as a standard mutex. 486 /* Release the local GL mutex */ 488 AcpiOsReleaseMutex (AcpiGbl_GlobalLockMutex->Mutex.OsMutex);
|
/src/sys/external/bsd/acpica/dist/os_specific/service_layers/ |
oswinxf.c | 881 void *Mutex; 921 Mutex = CreateSemaphore (NULL, InitialUnits, MaxUnits, NULL); 922 if (!Mutex) 930 AcpiGbl_Semaphores[i].OsHandle = Mutex; 934 i, MaxUnits, InitialUnits, Mutex)); 1160 /* Mutex interfaces, just implement with a semaphore */
|