| /src/sys/external/bsd/acpica/dist/executer/ |
| exmutex.c | 3 * Module Name: exmutex - ASL Mutex Acquire/Release functions 64 * PARAMETERS: ObjDesc - The mutex to be unlinked 68 * DESCRIPTION: Remove a mutex from the "AcquiredMutex" list 76 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread; 86 if (ObjDesc->Mutex.Next) 88 (ObjDesc->Mutex.Next)->Mutex.Prev = ObjDesc->Mutex.Prev; 91 if (ObjDesc->Mutex.Prev) 93 (ObjDesc->Mutex.Prev)->Mutex.Next = ObjDesc->Mutex.Next [all...] |
| exsystem.c | 108 * PARAMETERS: Mutex - Mutex to wait on 113 * DESCRIPTION: Implements a mutex wait with a check to see if the 114 * mutex is available immediately. If it is not, the 121 ACPI_MUTEX Mutex, 130 Status = AcpiOsAcquireMutex (Mutex, ACPI_DO_NOT_WAIT); 141 Status = AcpiOsAcquireMutex (Mutex, Timeout);
|
| excreate.c | 199 * DESCRIPTION: Create a new mutex object 201 * Mutex (Name[0], SyncLevel[1]) 216 /* Create the new mutex object */ 225 /* Create the actual OS Mutex */ 227 Status = AcpiOsCreateMutex (&ObjDesc->Mutex.OsMutex); 235 ObjDesc->Mutex.SyncLevel = (UINT8) WalkState->Operands[1]->Integer.Value; 236 ObjDesc->Mutex.Node = (ACPI_NAMESPACE_NODE *) WalkState->Operands[0]; 239 ObjDesc->Mutex.Node, ObjDesc, ACPI_TYPE_MUTEX); 522 * 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 | 183 * Mark the method as serialized. Later code will create a mutex for 296 * DESCRIPTION: Create a mutex object for a serialized control method 311 /* Create the new mutex object */ 319 /* Create the actual OS Mutex */ 321 Status = AcpiOsCreateMutex (&MutexDesc->Mutex.OsMutex); 328 MutexDesc->Mutex.SyncLevel = MethodDesc->Method.SyncLevel; 329 MethodDesc->Method.Mutex = MutexDesc; 380 * If this method is serialized, we need to acquire the method mutex. 385 * Create a mutex for the method if it is defined to be Serialized 386 * 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 69 * DESCRIPTION: Create the system mutex objects. This includes mutexes, 85 /* Create each of the predefined mutex objects */ 116 /* Mutex for _OSI support */ 144 * DESCRIPTION: Delete all of the system mutex objects. This includes mutexes, 159 /* Delete each predefined mutex object */ 185 * PARAMETERS: MutexID - ID of the mutex to be created 189 * DESCRIPTION: Create a mutex object. 203 if (!AcpiGbl_MutexInfo[MutexId].Mutex) 205 Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex); [all...] |
| utxfmutex.c | 3 * Module Name: utxfmutex - external AML mutex access functions 66 * PARAMETERS: Handle - Mutex or prefix handle (optional) 67 * Pathname - Mutex pathname (optional) 68 * RetObj - Where the mutex object is returned 72 * DESCRIPTION: Get an AML mutex object. The mutex node is pointed to by 96 /* Get a the namespace node for the mutex */ 109 /* Ensure that we actually have a Mutex object */ 117 /* Get the low-level mutex object */ 134 * PARAMETERS: Handle - Mutex or prefix handle (optional [all...] |
| utdelete.c | 180 "***** Mutex %p, OS Mutex %p\n", 181 Object, Object->Mutex.OsMutex)); 190 AcpiOsDeleteMutex (Object->Mutex.OsMutex); 196 AcpiOsDeleteMutex (Object->Mutex.OsMutex); 215 /* Delete the method mutex if it exists */ 217 if (Object->Method.Mutex) 219 AcpiOsDeleteMutex (Object->Method.Mutex->Mutex.OsMutex); 220 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 | 222 * MUTEX: Interpreter must be locked 230 * the global lock appear as a standard mutex on the OS side. 250 Status = AcpiExSystemWaitMutex (AcpiGbl_GlobalLockMutex->Mutex.OsMutex, 273 * treat the lock as a standard mutex. 378 /* Release the local GL mutex */ 380 AcpiOsReleaseMutex (AcpiGbl_GlobalLockMutex->Mutex.OsMutex);
|
| /src/sys/external/bsd/acpica/dist/os_specific/service_layers/ |
| oswinxf.c | 773 void *Mutex; 813 Mutex = CreateSemaphore (NULL, InitialUnits, MaxUnits, NULL); 814 if (!Mutex) 822 AcpiGbl_Semaphores[i].OsHandle = Mutex; 826 i, MaxUnits, InitialUnits, Mutex)); 1052 /* Mutex interfaces, just implement with a semaphore */
|