/third_party/gettext/gettext-runtime/intl/ |
D | lock.c | 31 glthread_lock_init (gl_lock_t *lock) in glthread_lock_init() argument 33 if (mtx_init (&lock->mutex, mtx_plain) != thrd_success) in glthread_lock_init() 35 lock->init_needed = 0; in glthread_lock_init() 40 glthread_lock_lock (gl_lock_t *lock) in glthread_lock_lock() argument 42 if (lock->init_needed) in glthread_lock_lock() 43 call_once (&lock->init_once, lock->init_func); in glthread_lock_lock() 44 if (mtx_lock (&lock->mutex) != thrd_success) in glthread_lock_lock() 50 glthread_lock_unlock (gl_lock_t *lock) in glthread_lock_unlock() argument 52 if (lock->init_needed) in glthread_lock_unlock() 53 call_once (&lock->init_once, lock->init_func); in glthread_lock_unlock() [all …]
|
D | windows-rwlock.c | 124 glwthread_rwlock_init (glwthread_rwlock_t *lock) in glwthread_rwlock_init() argument 126 InitializeCriticalSection (&lock->lock); in glwthread_rwlock_init() 127 glwthread_waitqueue_init (&lock->waiting_readers); in glwthread_rwlock_init() 128 glwthread_waitqueue_init (&lock->waiting_writers); in glwthread_rwlock_init() 129 lock->runcount = 0; in glwthread_rwlock_init() 130 lock->guard.done = 1; in glwthread_rwlock_init() 134 glwthread_rwlock_rdlock (glwthread_rwlock_t *lock) in glwthread_rwlock_rdlock() argument 136 if (!lock->guard.done) in glwthread_rwlock_rdlock() 138 if (InterlockedIncrement (&lock->guard.started) == 0) in glwthread_rwlock_rdlock() 140 glwthread_rwlock_init (lock); in glwthread_rwlock_rdlock() [all …]
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/ |
D | media.gyp.fontified | 1107 …lock-comment-face) 64 137 (face font-lock-comment-face) 137 166 (face font-lock-comment-face) 166 …
|
/third_party/node/tools/gyp/tools/emacs/testdata/ |
D | media.gyp.fontified | 1107 …lock-comment-face) 64 137 (face font-lock-comment-face) 137 166 (face font-lock-comment-face) 166 …
|
/third_party/grpc/src/core/lib/iomgr/ |
D | combiner.cc | 48 static void combiner_exec(grpc_core::Combiner* lock, grpc_closure* closure, 50 static void combiner_finally_exec(grpc_core::Combiner* lock, 56 grpc_core::Combiner* lock = new grpc_core::Combiner(); in grpc_combiner_create() local 57 gpr_ref_init(&lock->refs, 1); in grpc_combiner_create() 58 gpr_atm_no_barrier_store(&lock->state, STATE_UNORPHANED); in grpc_combiner_create() 59 grpc_closure_list_init(&lock->final_list); in grpc_combiner_create() 60 GRPC_CLOSURE_INIT(&lock->offload, offload, lock, nullptr); in grpc_combiner_create() 61 GRPC_COMBINER_TRACE(gpr_log(GPR_INFO, "C:%p create", lock)); in grpc_combiner_create() 62 return lock; in grpc_combiner_create() 65 static void really_destroy(grpc_core::Combiner* lock) { in really_destroy() argument [all …]
|
/third_party/boost/libs/thread/test/ |
D | test_mutex.cpp | 39 lock_type lock(mutex, boost::defer_lock); in operator ()() local 40 BOOST_CHECK(!lock); in operator ()() 42 lock_type lock(mutex); in operator ()() local 43 BOOST_CHECK(lock ? true : false); in operator ()() 51 BOOST_CHECK(!condition.timed_wait(lock, xt)); in operator ()() 52 BOOST_CHECK(lock ? true : false); in operator ()() 55 lock.unlock(); in operator ()() 56 BOOST_CHECK(!lock); in operator ()() 57 lock.lock(); in operator ()() 58 BOOST_CHECK(lock ? true : false); in operator ()() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/ |
D | Thread.cpp | 31 marl::lock lock(mutex); in setName() local 37 marl::lock lock(mutex); in name() local 41 void Thread::onLocationUpdate(marl::lock &lock) in onLocationUpdate() argument 57 lock.wait(stateCV, [this]() REQUIRES(mutex) { return state_ != State::Paused; }); in onLocationUpdate() 65 auto frame = pauseAtFrame.lock(); in onLocationUpdate() 78 lock.wait(stateCV, [this]() REQUIRES(mutex) { return state_ != State::Paused; }); in onLocationUpdate() 93 auto lock = ctx->lock(); in enter() local 94 frame = lock.createFrame(file, function); in enter() 95 isFunctionBreakpoint = lock.isFunctionBreakpoint(function); in enter() 99 marl::lock lock(mutex); in enter() local [all …]
|
/third_party/boost/boost/asio/detail/ |
D | conditionally_enabled_event.hpp | 47 void signal(conditionally_enabled_mutex::scoped_lock& lock) in signal() argument 49 if (lock.mutex_.enabled_) in signal() 50 event_.signal(lock); in signal() 54 void signal_all(conditionally_enabled_mutex::scoped_lock& lock) in signal_all() argument 56 if (lock.mutex_.enabled_) in signal_all() 57 event_.signal_all(lock); in signal_all() 62 conditionally_enabled_mutex::scoped_lock& lock) in unlock_and_signal_one() argument 64 if (lock.mutex_.enabled_) in unlock_and_signal_one() 65 event_.unlock_and_signal_one(lock); in unlock_and_signal_one() 70 conditionally_enabled_mutex::scoped_lock& lock) in unlock_and_signal_one_for_destruction() argument [all …]
|
D | win_event.hpp | 45 void signal(Lock& lock) in signal() argument 47 this->signal_all(lock); in signal() 52 void signal_all(Lock& lock) in signal_all() argument 54 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 55 (void)lock; in signal_all() 62 void unlock_and_signal_one(Lock& lock) in unlock_and_signal_one() argument 64 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 67 lock.unlock(); in unlock_and_signal_one() 74 void unlock_and_signal_one_for_destruction(Lock& lock) in unlock_and_signal_one_for_destruction() argument 76 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() [all …]
|
D | std_event.hpp | 50 void signal(Lock& lock) in signal() argument 52 this->signal_all(lock); in signal() 57 void signal_all(Lock& lock) in signal_all() argument 59 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 60 (void)lock; in signal_all() 67 void unlock_and_signal_one(Lock& lock) in unlock_and_signal_one() argument 69 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 72 lock.unlock(); in unlock_and_signal_one() 79 void unlock_and_signal_one_for_destruction(Lock& lock) in unlock_and_signal_one_for_destruction() argument 81 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() [all …]
|
D | posix_event.hpp | 48 void signal(Lock& lock) in signal() argument 50 this->signal_all(lock); in signal() 55 void signal_all(Lock& lock) in signal_all() argument 57 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 58 (void)lock; in signal_all() 65 void unlock_and_signal_one(Lock& lock) in unlock_and_signal_one() argument 67 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 70 lock.unlock(); in unlock_and_signal_one() 77 void unlock_and_signal_one_for_destruction(Lock& lock) in unlock_and_signal_one_for_destruction() argument 79 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() [all …]
|
/third_party/boost/libs/asio/include/boost/asio/detail/ |
D | conditionally_enabled_event.hpp | 47 void signal(conditionally_enabled_mutex::scoped_lock& lock) in signal() argument 49 if (lock.mutex_.enabled_) in signal() 50 event_.signal(lock); in signal() 54 void signal_all(conditionally_enabled_mutex::scoped_lock& lock) in signal_all() argument 56 if (lock.mutex_.enabled_) in signal_all() 57 event_.signal_all(lock); in signal_all() 62 conditionally_enabled_mutex::scoped_lock& lock) in unlock_and_signal_one() argument 64 if (lock.mutex_.enabled_) in unlock_and_signal_one() 65 event_.unlock_and_signal_one(lock); in unlock_and_signal_one() 70 conditionally_enabled_mutex::scoped_lock& lock) in unlock_and_signal_one_for_destruction() argument [all …]
|
D | win_event.hpp | 45 void signal(Lock& lock) in signal() argument 47 this->signal_all(lock); in signal() 52 void signal_all(Lock& lock) in signal_all() argument 54 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 55 (void)lock; in signal_all() 62 void unlock_and_signal_one(Lock& lock) in unlock_and_signal_one() argument 64 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 67 lock.unlock(); in unlock_and_signal_one() 74 void unlock_and_signal_one_for_destruction(Lock& lock) in unlock_and_signal_one_for_destruction() argument 76 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() [all …]
|
D | std_event.hpp | 50 void signal(Lock& lock) in signal() argument 52 this->signal_all(lock); in signal() 57 void signal_all(Lock& lock) in signal_all() argument 59 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 60 (void)lock; in signal_all() 67 void unlock_and_signal_one(Lock& lock) in unlock_and_signal_one() argument 69 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 72 lock.unlock(); in unlock_and_signal_one() 79 void unlock_and_signal_one_for_destruction(Lock& lock) in unlock_and_signal_one_for_destruction() argument 81 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() [all …]
|
D | posix_event.hpp | 48 void signal(Lock& lock) in signal() argument 50 this->signal_all(lock); in signal() 55 void signal_all(Lock& lock) in signal_all() argument 57 BOOST_ASIO_ASSERT(lock.locked()); in signal_all() 58 (void)lock; in signal_all() 65 void unlock_and_signal_one(Lock& lock) in unlock_and_signal_one() argument 67 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one() 70 lock.unlock(); in unlock_and_signal_one() 77 void unlock_and_signal_one_for_destruction(Lock& lock) in unlock_and_signal_one_for_destruction() argument 79 BOOST_ASIO_ASSERT(lock.locked()); in unlock_and_signal_one_for_destruction() [all …]
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/ |
D | spinlock.h | 58 #define spin_lock_bh(lock) \ argument 60 SPIN_UNUSED_PARAM(spinlock_t *, lock); \ 63 #define spin_unlock_bh(lock) \ argument 65 SPIN_UNUSED_PARAM(spinlock_t *, lock); \ 69 #define spin_lock_init(lock) do {LOS_SpinInit(lock);} while (0) argument 70 #define spin_lock(lock) do {LOS_SpinLock(lock);} while (0) argument 71 #define spin_unlock(lock) do {LOS_SpinUnlock(lock);} while (0) argument 73 #define spin_lock_irqsave(lock, flags) do {LOS_SpinLockSave(lock, (UINT32 *)&flags);} while (0) argument 74 #define spin_unlock_irqrestore(lock, flags) do {LOS_SpinUnlockRestore(lock, (UINT32)flags);} while… argument 77 #define spin_lock_init(lock) \ argument [all …]
|
/third_party/openssl/crypto/ |
D | threads_pthread.c | 27 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local 29 if ((lock = OPENSSL_zalloc(sizeof(pthread_rwlock_t))) == NULL) { in CRYPTO_THREAD_lock_new() 34 if (pthread_rwlock_init(lock, NULL) != 0) { in CRYPTO_THREAD_lock_new() 35 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 40 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() 42 if ((lock = OPENSSL_zalloc(sizeof(pthread_mutex_t))) == NULL) { in CRYPTO_THREAD_lock_new() 50 if (pthread_mutex_init(lock, &attr) != 0) { in CRYPTO_THREAD_lock_new() 52 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 59 return lock; in CRYPTO_THREAD_lock_new() 62 int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_read_lock() argument [all …]
|
/third_party/curl/tests/data/ |
D | test1554 | 22 -> Mutex lock 24 -> Mutex lock 26 -> Mutex lock 28 -> Mutex lock 30 -> Mutex lock 32 -> Mutex lock 34 -> Mutex lock 36 -> Mutex lock 39 -> Mutex lock 41 -> Mutex lock [all …]
|
/third_party/boost/libs/signals2/test/ |
D | mutex_test.cpp | 41 boost::mutex::scoped_lock lock(mutex); in start() local 46 boost::mutex::scoped_lock lock(mutex); in finish() local 53 boost::mutex::scoped_lock lock(mutex); in wait() local 55 if (!cond.timed_wait(lock, timeout)) in wait() 118 lock_type lock(mutex, boost::defer_lock); in operator ()() local 119 BOOST_CHECK(!lock); in operator ()() 121 lock_type lock(mutex); in operator ()() local 122 BOOST_CHECK(lock ? true : false); in operator ()() 130 BOOST_CHECK(!condition.timed_wait(lock, timeout)); in operator ()() 131 BOOST_CHECK(lock ? true : false); in operator ()() [all …]
|
/third_party/glib/glib/deprecated/ |
D | gthread-deprecated.c | 957 g_static_rw_lock_init (GStaticRWLock* lock) in g_static_rw_lock_init() argument 961 g_return_if_fail (lock); in g_static_rw_lock_init() 963 *lock = init_lock; in g_static_rw_lock_init() 975 g_static_rw_lock_signal (GStaticRWLock* lock) in g_static_rw_lock_signal() argument 977 if (lock->want_to_write && lock->write_cond) in g_static_rw_lock_signal() 978 g_cond_signal (lock->write_cond); in g_static_rw_lock_signal() 979 else if (lock->want_to_read && lock->read_cond) in g_static_rw_lock_signal() 980 g_cond_broadcast (lock->read_cond); in g_static_rw_lock_signal() 1002 g_static_rw_lock_reader_lock (GStaticRWLock* lock) in g_static_rw_lock_reader_lock() argument 1004 g_return_if_fail (lock); in g_static_rw_lock_reader_lock() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/test/ |
D | lock_test.cc | 29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread() argument 62 Lock lock; in BasicLockTest() local 63 BasicLockTestThread thread(&lock); in BasicLockTest() 70 lock.Acquire(); in BasicLockTest() 72 lock.Unlock(); in BasicLockTest() 75 lock.Acquire(); in BasicLockTest() 78 lock.Unlock(); in BasicLockTest() 81 if (lock.Try()) { in BasicLockTest() 84 lock.Unlock(); in BasicLockTest() 88 lock.Acquire(); in BasicLockTest() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
D | lock_test.cc | 29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread() argument 62 Lock lock; in BasicLockTest() local 63 BasicLockTestThread thread(&lock); in BasicLockTest() 70 lock.Acquire(); in BasicLockTest() 72 lock.Unlock(); in BasicLockTest() 75 lock.Acquire(); in BasicLockTest() 78 lock.Unlock(); in BasicLockTest() 81 if (lock.Try()) { in BasicLockTest() 84 lock.Unlock(); in BasicLockTest() 88 lock.Acquire(); in BasicLockTest() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
D | conditionvariable_test.cpp | 30 marl::lock lock(mutex); in TEST_F() local 31 cv.wait(lock, [&] { in TEST_F() 32 EXPECT_TRUE(lock.owns_lock()); in TEST_F() 35 EXPECT_TRUE(lock.owns_lock()); in TEST_F() 47 marl::lock lock(mutex); in TEST_F() local 50 cv.wait(lock, [&] { in TEST_F() 51 EXPECT_TRUE(lock.owns_lock()); in TEST_F() 54 EXPECT_TRUE(lock.owns_lock()); in TEST_F() 73 marl::lock lock(mutex); in TEST_P() local 74 cv.wait(lock, [&] { in TEST_P() [all …]
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
D | linux_wakelock.c | 46 UINT32 lock; /* Indicate which bit is locked */ member 74 void linux_wake_lock_init(struct wake_lock *lock, int type, const char *name) in linux_wake_lock_init() argument 80 if (lock == NULL) { in linux_wake_lock_init() 85 lock->ws.name = name; in linux_wake_lock_init() 90 lock->bitmap_pos = (UINT32)pos; in linux_wake_lock_init() 91 SET_BIT(g_wlBitmap.used, lock->bitmap_pos); in linux_wake_lock_init() 92 CLEAR_BIT(g_wlBitmap.lock, lock->bitmap_pos); in linux_wake_lock_init() 102 void linux_wake_lock(struct wake_lock *lock) in linux_wake_lock() argument 105 if (lock == NULL) { in linux_wake_lock() 110 SET_BIT(g_wlBitmap.lock, lock->bitmap_pos); in linux_wake_lock() [all …]
|
/third_party/glib/glib/tests/ |
D | rwlock.c | 33 GRWLock lock; in test_rwlock1() local 35 g_rw_lock_init (&lock); in test_rwlock1() 36 g_rw_lock_writer_lock (&lock); in test_rwlock1() 37 g_rw_lock_writer_unlock (&lock); in test_rwlock1() 38 g_rw_lock_writer_lock (&lock); in test_rwlock1() 39 g_rw_lock_writer_unlock (&lock); in test_rwlock1() 40 g_rw_lock_clear (&lock); in test_rwlock1() 46 static GRWLock lock; in test_rwlock2() local 48 g_rw_lock_writer_lock (&lock); in test_rwlock2() 49 g_rw_lock_writer_unlock (&lock); in test_rwlock2() [all …]
|