/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 37 bool locked() const {return locked_;} in locked() function in L0 55 bool locked() const {return locked_;} in locked() function in L1 73 bool locked() const {return locked_;} in locked() function in L2 82 assert(l0.locked()); in main() 83 assert(l1.locked()); in main() 89 assert(!l0.locked()); in main() 90 assert(!l1.locked()); in main() 96 assert(!l0.locked()); in main() 97 assert(!l1.locked()); in main() 110 assert(!l0.locked()); in main() [all …]
|
D | lock.pass.cpp | 47 bool locked() const {return locked_;} in locked() function in L0 70 bool locked() const {return locked_;} in locked() function in L1 93 bool locked() const {return locked_;} in locked() function in L2 102 assert(l0.locked()); in main() 103 assert(l1.locked()); in main() 109 assert(l0.locked()); in main() 110 assert(l1.locked()); in main() 116 assert(l0.locked()); in main() 117 assert(l1.locked()); in main() 130 assert(!l0.locked()); in main() [all …]
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.guard/ |
D | variadic_mutex.pass.cpp | 27 bool locked = false; member 29 ~TestMutex() { assert(!locked); } in ~TestMutex() 31 void lock() { assert(!locked); locked = true; } in lock() 32 bool try_lock() { if (locked) return false; locked = true; return true; } in try_lock() 33 void unlock() { assert(locked); locked = false; } in unlock() 41 bool locked = false; member 45 ~TestMutexThrows() { assert(!locked); } in ~TestMutexThrows() 48 assert(!locked); in lock() 52 locked = true; in lock() 56 if (locked) return false; in try_lock() [all …]
|
D | variadic_adopt_lock.pass.cpp | 25 bool locked = false; member 28 void lock() { assert(!locked); locked = true; } in lock() 29 bool try_lock() { if (locked) return false; locked = true; return true; } in try_lock() 30 void unlock() { assert(locked); locked = false; } in unlock() 48 assert(m1.locked && m2.locked); in main() 50 assert(!m1.locked && !m2.locked); in main() 58 assert(m1.locked && m2.locked && m3.locked); in main() 60 assert(!m1.locked && !m2.locked && !m3.locked); in main()
|
/external/llvm/include/llvm/Support/ |
D | UniqueLock.h | 30 bool locked; variable 35 unique_lock() : M(nullptr), locked(false) {} in unique_lock() 36 explicit unique_lock(MutexT &m) : M(&m), locked(true) { M->lock(); } in unique_lock() 42 locked = o.locked; 44 o.locked = false; 50 assert(!locked && "mutex already locked!"); in lock() 53 locked = true; in lock() 57 assert(locked && "unlocking a mutex that isn't locked!"); in unlock() 60 locked = false; in unlock() 63 bool owns_lock() { return locked; } in owns_lock()
|
/external/valgrind/docs/internals/ |
D | tm-mutexstates.dot | 4 locked; 10 free -> locked [ label="locked" ]; 11 locked -> unlocking [ label="unlocked\nby owner" ]; 13 unlocking -> locked [ label="lock changed owner" ]; 17 dead -> locked [ style=dotted, label="locked\nafter destroy" ]; 20 locked -> free [ style=dotted, label="unlocked\nby non-owner" ]; 21 locked -> dead [ style=dotted, label="destroyed\nwhile locked" ];
|
/external/compiler-rt/test/tsan/ |
D | real_deadlock_detector_stress_test.cc | 44 std::vector<int> locked; in Thread() local 47 if (what < 4 && locked.size() < kMaxPerThread) { in Thread() 50 if (!locked.empty()) { in Thread() 51 max_locked = *std::max_element(locked.begin(), locked.end()); in Thread() 122 locked.push_back(id); in Thread() 123 } else if (what < 9 && !locked.empty()) { in Thread() 125 int pos = rand_r(&rnd) % locked.size(); in Thread() 126 int id = locked[pos]; in Thread() 127 locked[pos] = locked[locked.size() - 1]; in Thread() 128 locked.pop_back(); in Thread() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/ |
D | JIT.cpp | 285 MutexGuard locked(lock); in JIT() local 286 FunctionPassManager &PM = jitstate->getPM(locked); in JIT() 332 MutexGuard locked(lock); in addModule() local 339 FunctionPassManager &PM = jitstate->getPM(locked); in addModule() 360 MutexGuard locked(lock); in removeModule() local 370 FunctionPassManager &PM = jitstate->getPM(locked); in removeModule() 556 MutexGuard locked(lock); in RegisterJITEventListener() local 562 MutexGuard locked(lock); in UnregisterJITEventListener() local 574 MutexGuard locked(lock); in NotifyFunctionEmitted() local 581 MutexGuard locked(lock); in NotifyFreeingMachineCode() local [all …]
|
/external/valgrind/helgrind/tests/ |
D | annotate_rwlock.c | 38 volatile int locked; member 51 p->locked = 0; in rwlock_init() 60 assert(p->locked == 0); in rwlock_destroy() 69 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1) in rwlock_rdlock() 79 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_rdlock() 85 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_rdlock() 94 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1) in rwlock_wrlock() 104 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_wrlock() 110 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_wrlock() 117 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1) in rwlock_unlock() [all …]
|
/external/valgrind/drd/tests/ |
D | annotate_rwlock.c | 28 volatile int locked; member 41 p->locked = 0; in rwlock_init() 50 assert(p->locked == 0); in rwlock_destroy() 59 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1) in rwlock_rdlock() 69 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_rdlock() 75 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_rdlock() 83 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1) in rwlock_wrlock() 93 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_wrlock() 99 (void) __sync_fetch_and_sub(&p->locked, 1); in rwlock_wrlock() 105 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1) in rwlock_unlock() [all …]
|
D | tc23_bogus_condwait.stderr.exp-linux-x86 | 7 … 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling … 16 Mutex not locked: mutex 0x........, recursion count 0, owner 0. 24 … 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling … 44 … 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling … 56 Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 2. 64 … 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling … 76 The impossible happened: mutex is locked simultaneously by two threads: mutex 0x........, recursion… 84 Mutex not locked by calling thread: mutex 0x........, recursion count 2, owner 1.
|
/external/toolchain-utils/crb/ |
D | machine_manager_singleton.py | 16 self.locked = False 25 l.append(str(self.locked)) 54 locked = True 56 locked = lock_machine.Machine(cros_machine.name).Lock(True, sys.argv[0]) 57 if locked: 91 for m in [machine for machine in self._machines if not machine.locked]: 93 m.locked = True 96 for m in [machine for machine in self._machines if not machine.locked]: 98 m.locked = True 101 for m in [machine for machine in self._machines if not machine.locked]: [all …]
|
/external/toolchain-utils/automation/common/ |
D | machine.py | 21 self.locked = False 24 assert not self.locked 27 self.locked = True 36 self.locked = False 46 self.os, 'Uses: %d' % self.uses, 'Locked: %s' % self.locked]) 64 return all([not machine.locked, fnmatch(machine.hostname, self.hostname),
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | posix_event.hpp | 52 ASIO_ASSERT(lock.locked()); in signal_all() 62 ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 74 ASIO_ASSERT(lock.locked()); in maybe_unlock_and_signal_one() 89 ASIO_ASSERT(lock.locked()); in clear() 98 ASIO_ASSERT(lock.locked()); in wait()
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
D | wait_terminates.sh.cpp | 79 std::atomic_bool locked; member in ThrowingMutex 85 locked = false; in ThrowingMutex() 90 locked = true; in lock() 97 void unlock() { locked = false; } in unlock() 98 bool isLocked() const { return locked == true; } in isLocked()
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 96 MutexGuard locked(lock); in ~MCJIT() local 108 MutexGuard locked(lock); in addModule() local 117 MutexGuard locked(lock); in removeModule() local 144 MutexGuard locked(lock); in setObjectCache() local 149 MutexGuard locked(lock); in emitObject() local 187 MutexGuard locked(lock); in generateCodeForModule() local 236 MutexGuard locked(lock); in finalizeLoadedModules() local 252 MutexGuard locked(lock); in finalizeObject() local 267 MutexGuard locked(lock); in finalizeModule() local 293 MutexGuard locked(lock); in findModuleForSymbol() local [all …]
|
/external/autotest/client/cros/cellular/pseudomodem/ |
D | sim.py | 114 locked=False, argument 137 self._lock_enabled = locked 138 self._show_retries = locked 139 if locked: 169 if not self.locked and self._lock_enabled: 217 def locked(self): member in SIM 256 if self.locked: 329 if not self.locked: 410 if self.locked or self._lock_enabled: 427 if self.locked: [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowPowerManager.java | 34 private boolean locked; field in ShadowPowerManager.ShadowWakeLock 47 locked = true; in acquire() 56 locked = false; in release() 62 return refCounted ? refCount > 0 : locked; in isHeld()
|
D | ShadowCamera.java | 21 private boolean locked; field in ShadowCamera 34 locked = true; in __constructor__() 46 locked = false; in unlock() 51 locked = true; in reconnect() 126 return locked; in isLocked()
|
/external/toolchain-utils/crosperf/ |
D | machine_manager_unittest.py | 329 self.mock_lumpy1.locked = True 330 self.mock_lumpy2.locked = True 331 self.mock_lumpy3.locked = False 333 self.mock_daisy1.locked = True 334 self.mock_daisy2.locked = False 347 self.assertTrue(self.mock_lumpy1.locked) 354 save_locked = self.mock_lumpy1.locked 355 self.mock_lumpy1.locked = False 359 self.assertTrue(self.mock_lumpy1.locked) 365 self.mock_lumpy1.locked = False [all …]
|
D | machine_manager.py | 54 self.locked = False 185 l.append(str(self.locked)) 349 locked = True 351 locked = file_lock_machine.Machine(cros_machine.name, 354 if locked: 424 if not machine.locked] 427 m.locked = True 432 m.locked = True 447 m.locked = True 466 assert m.locked, 'Tried to double-release %s' % m.name [all …]
|
/external/autotest/client/site_tests/network_SIMLocking/ |
D | control | 26 - Unlock a pin-locked SIM. 27 - Attempt to unlock a pin-locked SIM with incorrect sim-pin, until it gets 28 puk-locked. 29 - Unblock a puk-locked SIM. 30 - Attempt to unblock a puk-locked SIM with incorrect sim-puk, until the SIM
|
/external/libchrome/base/threading/ |
D | thread_id_name_manager.cc | 28 AutoLock locked(lock_); in ThreadIdNameManager() local 46 AutoLock locked(lock_); in RegisterThread() local 56 AutoLock locked(lock_); in SetName() local 88 AutoLock locked(lock_); in GetName() local 105 AutoLock locked(lock_); in RemoveName() local
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 161 MutexGuard locked(lock); in addGlobalMapping() local 165 void *&CurVal = EEState.getGlobalAddressMap(locked)[GV]; in addGlobalMapping() 170 if (!EEState.getGlobalAddressReverseMap(locked).empty()) { in addGlobalMapping() 172 EEState.getGlobalAddressReverseMap(locked)[Addr]; in addGlobalMapping() 179 MutexGuard locked(lock); in clearAllGlobalMappings() local 181 EEState.getGlobalAddressMap(locked).clear(); in clearAllGlobalMappings() 182 EEState.getGlobalAddressReverseMap(locked).clear(); in clearAllGlobalMappings() 186 MutexGuard locked(lock); in clearGlobalMappingsFromModule() local 189 EEState.RemoveMapping(locked, FI); in clearGlobalMappingsFromModule() 192 EEState.RemoveMapping(locked, GI); in clearGlobalMappingsFromModule() [all …]
|
/external/swiftshader/src/Main/ |
D | FrameBufferAndroid.cpp | 71 if(locked) in blit() 73 locked = nullptr; in blit() 90 0, 0, buffer->width, buffer->height, &locked) != 0) in lock() 117 return locked; in lock() 128 locked = nullptr; in unlock()
|