/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/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()
|
/third_party/node/deps/npm/node_modules/lockfile/test/ |
D | basic.js | 67 lockFile.check('basic-lock', function (er, locked) { argument 69 t.notOk(locked) 74 lockFile.check('basic-lock', function (er, locked) { argument 76 t.ok(locked) 79 lockFile.check('basic-lock', function (er, locked) { argument 81 t.notOk(locked) 92 var locked 93 locked = lockFile.checkSync('sync-lock') 94 t.notOk(locked) 96 locked = lockFile.checkSync('sync-lock') [all …]
|
/third_party/python/Python/ |
D | ceval_gil.h | 96 gil->locked = uninitialized; in _gil_initialize() 102 return (_Py_atomic_load_explicit(&gil->locked, _Py_memory_order_acquire) >= 0); in gil_created() 116 _Py_ANNOTATE_RWLOCK_CREATE(&gil->locked); in create_gil() 117 _Py_atomic_store_explicit(&gil->locked, 0, _Py_memory_order_release); in create_gil() 131 _Py_atomic_store_explicit(&gil->locked, -1, in destroy_gil() 133 _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); in destroy_gil() 138 _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); in recreate_gil() 152 if (!_Py_atomic_load_relaxed(&gil->locked)) { in drop_gil() 165 _Py_ANNOTATE_RWLOCK_RELEASED(&gil->locked, /*is_write=*/1); in drop_gil() 166 _Py_atomic_store_relaxed(&gil->locked, 0); in drop_gil() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | hash.h | 197 void *userData, bool locked) in _mesa_HashWalkMaybeLocked() argument 199 if (locked) in _mesa_HashWalkMaybeLocked() 207 bool locked) in _mesa_HashLookupMaybeLocked() argument 209 if (locked) in _mesa_HashLookupMaybeLocked() 218 bool locked) in _mesa_HashInsertMaybeLocked() argument 220 if (locked) in _mesa_HashInsertMaybeLocked() 227 _mesa_HashLockMaybeLocked(struct _mesa_HashTable *table, bool locked) in _mesa_HashLockMaybeLocked() argument 229 if (!locked) in _mesa_HashLockMaybeLocked() 234 _mesa_HashUnlockMaybeLocked(struct _mesa_HashTable *table, bool locked) in _mesa_HashUnlockMaybeLocked() argument 236 if (!locked) in _mesa_HashUnlockMaybeLocked()
|
/third_party/boost/libs/thread/test/ |
D | test_lock_concept.cpp | 38 bool locked; member 42 done(false),locked(false) in test_initially_unlocked_if_other_thread_has_lock() 50 locked=lock.owns_lock(); in locking_thread() 75 BOOST_CHECK(!locked); in operator ()() 96 bool locked; member 100 done(false),locked(false) in test_initially_unlocked_with_try_lock_if_other_thread_has_unique_lock() 108 locked=lock.owns_lock(); in locking_thread() 133 BOOST_CHECK(!locked); in operator ()() 154 bool locked; member 158 done(false),locked(false) in test_initially_locked_if_other_thread_has_shared_lock() [all …]
|
D | test_generic_locks.cpp | 78 void lock_mutexes_slowly(boost::mutex* m1,boost::mutex* m2,wait_data* locked,wait_data* quit) in lock_mutexes_slowly() argument 83 locked->signal(); in lock_mutexes_slowly() 97 wait_data locked; in BOOST_AUTO_TEST_CASE() local 100 boost::thread t(lock_mutexes_slowly,&m1,&m2,&locked,&release); in BOOST_AUTO_TEST_CASE() 104 BOOST_CHECK(locked.timed_wait(boost::posix_time::seconds(1))); in BOOST_AUTO_TEST_CASE() 116 wait_data locked; in BOOST_AUTO_TEST_CASE() local 119 boost::thread t(lock_mutexes_slowly,&m1,&m2,&locked,&release); in BOOST_AUTO_TEST_CASE() 123 BOOST_CHECK(locked.timed_wait(boost::posix_time::seconds(1))); in BOOST_AUTO_TEST_CASE() 158 wait_data* locked,wait_data* quit) in lock_five_mutexes_slowly() argument 169 locked->signal(); in lock_five_mutexes_slowly() [all …]
|
/third_party/grpc/src/core/lib/gpr/ |
D | sync_windows.cc | 32 mu->locked = 0; in gpr_mu_init() 39 GPR_ASSERT(!mu->locked); in gpr_mu_lock() 40 mu->locked = 1; in gpr_mu_lock() 44 mu->locked = 0; in gpr_mu_unlock() 51 if (mu->locked) { /* This thread already holds the lock. */ in gpr_mu_trylock() 55 mu->locked = 1; in gpr_mu_trylock() 71 mu->locked = 0; in gpr_cv_wait() 93 mu->locked = 1; in gpr_cv_wait()
|
/third_party/python/Lib/test/test_asyncio/ |
D | test_locks.py | 47 self.assertFalse(lock.locked()) 80 self.assertFalse(lock.locked()) 87 self.assertFalse(lock.locked()) 91 self.assertFalse(lock.locked()) 182 self.assertTrue(lock.locked()) 196 self.assertFalse(lock.locked()) 250 self.assertTrue(lock.locked()) 263 self.assertTrue(lock.locked()) 277 self.assertTrue(lock.locked()) 280 self.assertFalse(lock.locked()) [all …]
|
D | test_pep492.py | 55 self.assertFalse(lock.locked()) 58 self.assertTrue(lock.locked()) 60 self.assertTrue(lock.locked()) 61 self.assertFalse(lock.locked()) 65 self.assertFalse(primitive.locked()) 77 self.assertFalse(lock.locked()) 87 self.assertFalse(primitive.locked())
|
/third_party/boost/boost/regex/pending/ |
D | static_mutex.hpp | 48 inline bool locked()const in locked() function in boost::scoped_static_mutex_lock 54 return locked() ? this : 0; in operator void const*() 100 return locked() ? this : 0; in operator void const*() 102 bool locked()const in locked() function in boost::scoped_static_mutex_lock 160 bool locked()const; 170 return locked() ? this : 0; in operator void const*() 173 inline bool scoped_static_mutex_lock::locked()const in locked() function in boost::scoped_static_mutex_lock
|
/third_party/boost/libs/asio/include/boost/asio/detail/ |
D | win_event.hpp | 54 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 64 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 76 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() 88 BOOST_ASIO_ASSERT(lock.locked()); in maybe_unlock_and_signal_one() 103 BOOST_ASIO_ASSERT(lock.locked()); in clear() 113 BOOST_ASIO_ASSERT(lock.locked()); in wait() 132 BOOST_ASIO_ASSERT(lock.locked()); in wait_for_usec()
|
D | posix_event.hpp | 57 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 67 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 79 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() 91 BOOST_ASIO_ASSERT(lock.locked()); in maybe_unlock_and_signal_one() 106 BOOST_ASIO_ASSERT(lock.locked()); in clear() 115 BOOST_ASIO_ASSERT(lock.locked()); in wait() 128 BOOST_ASIO_ASSERT(lock.locked()); in wait_for_usec()
|
D | std_event.hpp | 59 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 69 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 81 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() 93 BOOST_ASIO_ASSERT(lock.locked()); in maybe_unlock_and_signal_one() 108 BOOST_ASIO_ASSERT(lock.locked()); in clear() 117 BOOST_ASIO_ASSERT(lock.locked()); in wait() 130 BOOST_ASIO_ASSERT(lock.locked()); in wait_for_usec()
|
/third_party/boost/boost/asio/detail/ |
D | win_event.hpp | 54 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 64 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 76 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() 88 BOOST_ASIO_ASSERT(lock.locked()); in maybe_unlock_and_signal_one() 103 BOOST_ASIO_ASSERT(lock.locked()); in clear() 113 BOOST_ASIO_ASSERT(lock.locked()); in wait() 132 BOOST_ASIO_ASSERT(lock.locked()); in wait_for_usec()
|
D | posix_event.hpp | 57 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 67 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 79 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() 91 BOOST_ASIO_ASSERT(lock.locked()); in maybe_unlock_and_signal_one() 106 BOOST_ASIO_ASSERT(lock.locked()); in clear() 115 BOOST_ASIO_ASSERT(lock.locked()); in wait() 128 BOOST_ASIO_ASSERT(lock.locked()); in wait_for_usec()
|
D | std_event.hpp | 59 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 69 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 81 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() 93 BOOST_ASIO_ASSERT(lock.locked()); in maybe_unlock_and_signal_one() 108 BOOST_ASIO_ASSERT(lock.locked()); in clear() 117 BOOST_ASIO_ASSERT(lock.locked()); in wait() 130 BOOST_ASIO_ASSERT(lock.locked()); in wait_for_usec()
|
/third_party/boost/boost/thread/pthread/ |
D | pthread_mutex_scoped_lock.hpp | 22 bool locked; member in boost::pthread::pthread_mutex_scoped_lock 25 m(m_),locked(true) in pthread_mutex_scoped_lock() 32 locked=false; in unlock() 36 if(locked) in unlock_if_locked() 43 if(locked) in ~pthread_mutex_scoped_lock()
|
/third_party/cef/libcef/common/ |
D | value_base.cc | 21 DCHECK(locked()); in SetOwner() 34 DCHECK(locked()); in AddReference() 50 DCHECK(locked()); in Remove() 87 DCHECK(locked()); in Get() 103 DCHECK(locked()); in AddDependency() 121 DCHECK(locked()); in RemoveDependencies() 165 DCHECK(locked()); in TakeFrom() 166 DCHECK(other->locked()); in TakeFrom() 204 DCHECK(locked()); in Swap()
|
D | value_base.h | 76 virtual bool locked() = 0; 162 bool locked() override { in locked() function 190 bool locked() override { return on_correct_thread(); } in locked() function 191 void AssertLockAcquired() override { DCHECK(locked()); } in AssertLockAcquired() 357 DCHECK(controller()->locked()); in OnControlRemoved() 373 DCHECK(controller()->locked()); in mutable_value() 379 DCHECK(controller()->locked()); in const_value() 386 DCHECK(controller()->locked()); in VerifyAccess()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 91 std::lock_guard<sys::Mutex> locked(lock); in ~MCJIT() local 103 std::lock_guard<sys::Mutex> locked(lock); in addModule() local 112 std::lock_guard<sys::Mutex> locked(lock); in removeModule() local 139 std::lock_guard<sys::Mutex> locked(lock); in setObjectCache() local 146 std::lock_guard<sys::Mutex> locked(lock); in emitObject() local 188 std::lock_guard<sys::Mutex> locked(lock); in generateCodeForModule() local 237 std::lock_guard<sys::Mutex> locked(lock); in finalizeLoadedModules() local 253 std::lock_guard<sys::Mutex> locked(lock); in finalizeObject() local 268 std::lock_guard<sys::Mutex> locked(lock); in finalizeModule() local 295 std::lock_guard<sys::Mutex> locked(lock); in findModuleForSymbol() local [all …]
|
/third_party/python/Lib/asyncio/ |
D | locks.py | 88 def locked(self): member in Lock 236 self.locked = lock.locked 244 extra = 'locked' if self.locked() else 'unlocked' 260 if not self.locked(): 311 if not self.locked(): 356 extra = 'locked' if self.locked() else f'unlocked, value:{self._value}' 368 def locked(self): member in Semaphore
|
/third_party/mindspore/mindspore/core/mindrt/include/async/ |
D | spinlock.h | 27 while (locked.test_and_set(std::memory_order_acquire)) { in Lock() 31 void Unlock() { locked.clear(std::memory_order_release); } in Unlock() 34 std::atomic_flag locked = ATOMIC_FLAG_INIT;
|
/third_party/boost/boost/fiber/detail/ |
D | spinlock_ttas.hpp | 56 while ( spinlock_status::locked == state_.load( std::memory_order_relaxed) ) { in lock() 85 …if ( spinlock_status::locked == state_.exchange( spinlock_status::locked, std::memory_order_acquir… in lock() 106 …return spinlock_status::unlocked == state_.exchange( spinlock_status::locked, std::memory_order_ac… in try_lock()
|
D | spinlock_ttas_adaptive.hpp | 62 while ( spinlock_status::locked == state_.load( std::memory_order_relaxed) ) { in lock() 92 …if ( spinlock_status::locked == state_.exchange( spinlock_status::locked, std::memory_order_acquir… in lock() 114 …return spinlock_status::unlocked == state_.exchange( spinlock_status::locked, std::memory_order_ac… in try_lock()
|
/third_party/ninja/src/ |
D | line_printer.cc | 147 void LinePrinter::SetConsoleLocked(bool locked) { in SetConsoleLocked() argument 148 if (locked == console_locked_) in SetConsoleLocked() 151 if (locked) in SetConsoleLocked() 154 console_locked_ = locked; in SetConsoleLocked() 156 if (!locked) { in SetConsoleLocked()
|