| /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/skia/third_party/externals/sfntly/cpp/src/test/ |
| D | lock_test.cc | 20 #include "sfntly/port/lock.h" 29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} in BasicLockTestThread() argument 55 Lock* lock_; 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() [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 …]
|
| D | test506 | 92 lock: share [Pigs in space]: 0 95 lock: cookie [Pigs in space]: 2 98 lock: cookie [Pigs in space]: 4 101 lock: cookie [Pigs in space]: 6 104 lock: cookie [Pigs in space]: 8 107 lock: cookie [Pigs in space]: 10 110 lock: cookie [Pigs in space]: 12 112 lock: share [Pigs in space]: 14 116 lock: share [Pigs in space]: 16 119 lock: cookie [Pigs in space]: 18 [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/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/ |
| D | 1-1.c | 9 * pthread_rwlock_unlock() function shall release a lock held on the 10 * read-write lock object referenced by rwlock 11 * If this function is called to release a read lock from the read-write lock object 12 * and there are other read locks currently held on this read-write lock object, 13 * the read-write lock object remains in the read locked state. 14 * If this function releases the last read lock for this read-write lock object, 15 * the read-write lock object shall be put in the unlocked state with no owners. 19 * 2. Main thread read lock 'rwlock' 20 * 3. Create a child thread, the thread read lock 'rwlock', should not block 21 * 4. Child thread unlock 'rwlock', while the main thread still hold the read lock. [all …]
|
| D | 3-1.c | 7 * If there are threads blocked on the lock when it becomes available, 8 * the scheduling policy shall determine which thread(s) shall acquire the lock. 11 * on the lock, they shall acquire the lock in priority order when the lock 22 * 2. Main thread write lock 'rwlock' 27 * on write lock too. 28 * 7. Main thread release the 'rwlock', make sure the threads got the lock in the order 84 printf("reader: attempt read lock\n"); in fn_rd() 88 ("Error: rd_thread failed to get read lock, Error code:%d\n", in fn_rd() 94 printf("reader: acquired read lock\n"); in fn_rd() 101 printf("reader: unlock read lock\n"); in fn_rd() [all …]
|
| D | assertions.xml | 3 pthread_rwlock_unlock( ) function shall release a lock held on the 4 read-write lock objectreferenced by rwlock 5 If this function is called to release a read lock from the read-write lock object 6 and there are other read locks currently held on this read-write lock object, 7 the read-write lock object remains in the read locked state. 8 If this function releases the last read lock for this read-write lock object, 9 the read-write lock object shall be put in the unlocked state with no owners. 13 If this function is called to release a write lock for this read-write 14 lock object, the read-write lock object shall be put in the unlocked state. 18 If there are threads blocked on the lock when it becomes available, [all …]
|
| /third_party/node/deps/openssl/openssl/crypto/ |
| D | threads_win.c | 35 SRWLOCK lock; member 42 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local 46 if ((lock = OPENSSL_zalloc(sizeof(CRYPTO_win_rwlock))) == NULL) in CRYPTO_THREAD_lock_new() 48 rwlock = lock; in CRYPTO_THREAD_lock_new() 49 InitializeSRWLock(&rwlock->lock); in CRYPTO_THREAD_lock_new() 52 if ((lock = OPENSSL_zalloc(sizeof(CRITICAL_SECTION))) == NULL) { in CRYPTO_THREAD_lock_new() 59 if (!InitializeCriticalSectionAndSpinCount(lock, 0x400)) { in CRYPTO_THREAD_lock_new() 60 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 64 InitializeCriticalSection(lock); in CRYPTO_THREAD_lock_new() 68 return lock; in CRYPTO_THREAD_lock_new() [all …]
|
| D | threads_pthread.c | 48 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local 50 if ((lock = OPENSSL_zalloc(sizeof(pthread_rwlock_t))) == NULL) { in CRYPTO_THREAD_lock_new() 55 if (pthread_rwlock_init(lock, NULL) != 0) { in CRYPTO_THREAD_lock_new() 56 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 61 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() 63 if ((lock = OPENSSL_zalloc(sizeof(pthread_mutex_t))) == NULL) { in CRYPTO_THREAD_lock_new() 80 if (pthread_mutex_init(lock, &attr) != 0) { in CRYPTO_THREAD_lock_new() 82 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 89 return lock; in CRYPTO_THREAD_lock_new() 92 __owur int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_read_lock() argument [all …]
|
| /third_party/openssl/crypto/ |
| D | threads_win.c | 35 SRWLOCK lock; member 42 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local 46 if ((lock = OPENSSL_zalloc(sizeof(CRYPTO_win_rwlock))) == NULL) in CRYPTO_THREAD_lock_new() 48 rwlock = lock; in CRYPTO_THREAD_lock_new() 49 InitializeSRWLock(&rwlock->lock); in CRYPTO_THREAD_lock_new() 52 if ((lock = OPENSSL_zalloc(sizeof(CRITICAL_SECTION))) == NULL) { in CRYPTO_THREAD_lock_new() 59 if (!InitializeCriticalSectionAndSpinCount(lock, 0x400)) { in CRYPTO_THREAD_lock_new() 60 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 64 InitializeCriticalSection(lock); in CRYPTO_THREAD_lock_new() 68 return lock; in CRYPTO_THREAD_lock_new() [all …]
|
| D | threads_pthread.c | 48 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local 50 if ((lock = OPENSSL_zalloc(sizeof(pthread_rwlock_t))) == NULL) { in CRYPTO_THREAD_lock_new() 55 if (pthread_rwlock_init(lock, NULL) != 0) { in CRYPTO_THREAD_lock_new() 56 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 61 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() 63 if ((lock = OPENSSL_zalloc(sizeof(pthread_mutex_t))) == NULL) { in CRYPTO_THREAD_lock_new() 82 if (pthread_mutex_init(lock, &attr) != 0) { in CRYPTO_THREAD_lock_new() 84 OPENSSL_free(lock); in CRYPTO_THREAD_lock_new() 91 return lock; in CRYPTO_THREAD_lock_new() 94 __owur int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_read_lock() argument [all …]
|
| /third_party/python/Lib/test/ |
| D | lock_tests.py | 99 lock = self.locktype() 100 del lock 103 lock = self.locktype() 104 self.assertRegex(repr(lock), "<unlocked .* object (.*)?at .*>") 105 del lock 108 lock = self.locktype() 109 lock.acquire() 110 self.assertRegex(repr(lock), "<locked .* object (.*)?at .*>") 111 del lock 114 lock = self.locktype() [all …]
|
| /third_party/ltp/testcases/kernel/syscalls/fcntl/ |
| D | fcntl14.c | 30 * Various test cases are used to lock a file opened without mandatory 87 /* #1 Parent making a write lock on entire file */ 89 /* Child attempting a read lock on entire file */ 92 /* #2 Parent making a write lock on entire file */ 94 /* Child attempting a write lock on entire file */ 97 /* #3 Parent making a read lock on entire file */ 99 /* Child attempting a read lock on entire file */ 102 /* #4 Parent making a read lock on entire file */ 104 /* Child attempting a write lock on entire file */ 108 /* #5 Parent making a write lock on entire file */ [all …]
|
| D | fcntl16.c | 26 * of processes on lock change 29 * Various test cases are used to lock a file opened without mandatory 31 * Checking that processes waiting on lock boundaries are notified 78 /* #1 Parent_a making a write lock on entire file */ 82 /* Child_a read lock on byte 1 to byte 5 */ 84 /* Child_b read lock on byte 6 to byte 10 */ 87 * Parent_c read lock on entire file 93 /* #2 Parent_a making a write lock on entire file */ 97 /* Child_a read lock on byte 1 to byte 5 */ 99 /* Child_b read lock on byte 6 to byte 10 */ [all …]
|
| /third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/ |
| D | 1-1.c | 9 * pthread_rwlock_rdlock() function shall apply a read lock to the 10 * read-write lock referenced by rwlock. The calling thread acquires 11 * the read lock if a writer does not hold the lock and there are 12 * no writers blocked on the lock. 14 * NOTE: This case will not test whether a thread can get the read lock if 15 * there are writers blocked on the lock -- it is implementation dependant. 19 * 2. Main thread read lock 'rwlock' 20 * 3. Create a child thread. The thread read lock 'rwlock', should not block. Then unlock it. 22 * 5. Main thread write lock 'rwlock' 23 * 6. Create child thread to read lock 'rwlock', should block [all …]
|
| D | 2-2.c | 10 * and the threads involved in the lock are executing with the 12 * acquire the lock if a writer holds the lock or if writers of 13 * higher or equal priority are blocked on the lock; 14 * otherwise, the calling thread shall acquire the lock. 23 * 2. Main thread read lock 'rwlock' 26 * 4. The thread write lock 'rwlock', should block. 29 * 6. Reader thread read lock 'rwlock', should block, since there is an equal priority 31 * 7. Main thread release the 'rwlock', the writer should get the lock first 83 printf("rd_thread: attempt read lock\n"); in fn_rd() 87 ("Test fail: rd_thread failed to get read lock, Error code:%d\n", in fn_rd() [all …]
|
| D | 2-1.c | 10 * and the threads involved in the lock are executing with the 12 * acquire the lock if a writer holds the lock or if writers of 13 * higher or equal priority are blocked on the lock; 14 * otherwise, the calling thread shall acquire the lock. 23 * 2. Main thread read lock 'rwlock' 26 * 4. The thread write lock 'rwlock', should block. 29 * 6. Reader thread read lock 'rwlock', should block, since there is a higher priority 31 * 7. Main thread release the 'rwlock', the writer should get the lock first 83 printf("rd_thread: attempt read lock\n"); in fn_rd() 87 ("Test FAILED: rd_thread failed to get read lock, Error code:%d\n", in fn_rd() [all …]
|
| /third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/ |
| D | wakelock.h | 57 * @brief Activate the wake lock. 60 * This API is used to activate the wake lock. 65 * <li>please make sure the parameter lock is valid,otherwise the system maybe crash!</li> 68 * @param lock [IN] Type #struct wake_lock struct of the lock. 75 void linux_wake_lock(struct wake_lock *lock); 79 * @brief Unlock the wake lock. 82 * This API is used to Unlock the wake lock,and make it invalid. 87 * <li>please make sure the parameter lock is valid,otherwise the system maybe crash!</li> 90 * @param lock [IN] Type #struct wake_lock struct of the lock. 97 void linux_wake_unlock(struct wake_lock *lock); [all …]
|
| D | spinlock.h | 56 #define spin_lock_bh(lock) \ argument 58 SPIN_UNUSED_PARAM(spinlock_t *, lock); \ 61 #define spin_unlock_bh(lock) \ argument 63 SPIN_UNUSED_PARAM(spinlock_t *, lock); \ 67 #define spin_lock_init(lock) do {LOS_SpinInit(lock);} while (0) argument 68 #define spin_lock(lock) do {LOS_SpinLock(lock);} while (0) argument 69 #define spin_unlock(lock) do {LOS_SpinUnlock(lock);} while (0) argument 71 #define spin_lock_irqsave(lock, flags) do {LOS_SpinLockSave(lock, (UINT32 *)&flags);} while (0) argument 72 #define spin_unlock_irqrestore(lock, flags) do {LOS_SpinUnlockRestore(lock, (UINT32)flags);} while… argument 75 #define spin_lock_init(lock) \ argument [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 | 42 /* spinlock for wake lock module only available on SMP mode */ 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() [all …]
|
| /third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/ |
| D | 1-2.c | 7 * Test pthread_spin_lock(pthread_spinlock_t *lock) 9 * The function shall lock the spin lock referenced by lock. The calling thread 10 * shall acquire the lock if it is not held by another thread. Otherwise, the 12 * until the lock becomes available. 17 * 2. Main thread lock 'spinlock', should get the lock 18 * 3. Create a child thread. The thread lock 'spinlock', should spin. 44 /* Lock the spinlock */ in fn_chld() 45 printf("thread: attempt spin lock\n"); in fn_chld() 49 ("Test FAILED: child failed to get spin lock,error code:%d\n", in fn_chld() 53 printf("thread: acquired spin lock\n"); in fn_chld() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/src/Common/ |
| D | Resource.hpp | 31 // buffer. Resource has an exclusive lock mode (sw::Accessor) and lock 33 // Resource doesn't treat any of the sw::Accessor enumerator lock modes 48 // lock() will atomically: 49 // When the resource is unlocked OR the lock mode equals claimer: 50 // * Increment the lock count. 52 // When the resource is locked AND the lock mode does not equal claimer: 53 // * Block until all existing locks are released (lock count equals 0). 54 // * Switch lock mode to claimer. 55 // * Increment the lock count. 57 void *lock(Accessor claimer); [all …]
|
| /third_party/ltp/testcases/network/nfsv4/locks/ |
| D | README | 6 A master process sets a lock on a file region (byte range locking). 8 as: read, write, set a new lock ... 87 1. WRITE ON A READ LOCK 88 2. WRITE ON A WRITE LOCK 89 3. READ ON A READ LOCK 90 4. READ ON A WRITE LOCK 91 5. SET A READ LOCK ON A READ LOCK 92 6. SET A WRITE LOCK ON A WRITE LOCK 93 7. SET A WRITE LOCK ON A READ LOCK 94 8. SET A READ LOCK ON A WRITE LOCK [all …]
|