/third_party/node/deps/openssl/openssl/crypto/ |
H A 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() 71 CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_read_lock() argument 83 CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_write_lock() argument 96 CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_unlock() argument 113 CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_lock_free() argument 136 LONG volatile *lock = (LONG *)once; CRYPTO_THREAD_run_once() local 213 CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_add() argument 219 CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_or() argument 238 CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_load() argument [all...] |
H A 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 107 CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_write_lock() argument 122 CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_unlock() argument 137 CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_lock_free() argument 199 CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_add() argument 225 CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_or() argument 251 CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_load() argument [all...] |
H A D | threads_none.c | 22 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local 24 if ((lock = OPENSSL_zalloc(sizeof(unsigned int))) == NULL) { in CRYPTO_THREAD_lock_new() 29 *(unsigned int *)lock = 1; in CRYPTO_THREAD_lock_new() 31 return lock; in CRYPTO_THREAD_lock_new() 34 __owur int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_read_lock() argument 36 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_read_lock() 41 __owur int CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_write_lock() argument 43 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_write_lock() 48 int CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_unlock() argument 50 if (!ossl_assert(*(unsigned int *)lock in CRYPTO_THREAD_unlock() 55 CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_lock_free() argument 128 CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_add() argument 136 CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_or() argument 145 CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_load() argument [all...] |
/third_party/openssl/crypto/ |
H A 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() 71 CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_read_lock() argument 83 CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_write_lock() argument 96 CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_unlock() argument 113 CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_lock_free() argument 136 LONG volatile *lock = (LONG *)once; CRYPTO_THREAD_run_once() local 213 CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_add() argument 219 CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_or() argument 238 CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_load() argument [all...] |
H A 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 109 CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_write_lock() argument 124 CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_unlock() argument 139 CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_lock_free() argument 201 CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_add() argument 227 CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_or() argument 253 CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_load() argument [all...] |
H A D | threads_none.c | 22 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local 24 if ((lock = OPENSSL_zalloc(sizeof(unsigned int))) == NULL) { in CRYPTO_THREAD_lock_new() 29 *(unsigned int *)lock = 1; in CRYPTO_THREAD_lock_new() 31 return lock; in CRYPTO_THREAD_lock_new() 34 __owur int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_read_lock() argument 36 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_read_lock() 41 __owur int CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_write_lock() argument 43 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_write_lock() 48 int CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_unlock() argument 50 if (!ossl_assert(*(unsigned int *)lock in CRYPTO_THREAD_unlock() 55 CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) CRYPTO_THREAD_lock_free() argument 128 CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_add() argument 136 CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_or() argument 145 CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) CRYPTO_atomic_load() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/ |
H A D | Thread.cpp | 31 marl::lock lock(mutex); in setName() 37 marl::lock lock(mutex); in name() 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 in enter() local [all...] |
H A D | Server.cpp | 58 dap::Scope scope(Context::Lock &lock, const char *type, Scope *); 117 auto lock = ctx->lock(); in Impl() 118 lock.clearFunctionBreakpoints(); in Impl() 121 lock.addFunctionBreakpoint(reqBP.name.c_str()); in Impl() 168 ctx->lock().addPendingBreakpoints(req.source.name.value(), in Impl() 188 auto lock = ctx->lock(); in Impl() 190 for(auto thread : lock.threads()) in Impl() 218 auto lock in Impl() 550 scope(Context::Lock &lock, const char *type, Scope *s) scope() argument 577 auto lock = ctx->lock(); file() local [all...] |
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/ |
H A D | spinlock.h | 56 #define spin_lock_bh(lock) \ 58 SPIN_UNUSED_PARAM(spinlock_t *, lock); \ 61 #define spin_unlock_bh(lock) \ 63 SPIN_UNUSED_PARAM(spinlock_t *, lock); \ 67 #define spin_lock_init(lock) do {LOS_SpinInit(lock);} while (0) 68 #define spin_lock(lock) do {LOS_SpinLock(lock);} while (0) 69 #define spin_unlock(lock) do {LOS_SpinUnlock(lock);} whil [all...] |
H A 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 [I [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
H A D | lock_test.cc | 20 #include "sfntly/port/lock.h" 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 in BasicLockTest() 106 TryLockTestThread(Lock* lock) TryLockTestThread() argument 124 Lock lock; TryLockTest() local 165 MutexLockTestThread(Lock* lock, int* value) MutexLockTestThread() argument 168 DoStuff(Lock* lock, int* value) DoStuff() argument 190 Lock lock; MutexTwoThreads() local 207 Lock lock; MutexFourThreads() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | conditionvariable_test.cpp | 30 marl::lock lock(mutex); in TEST_F() 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() 50 cv.wait(lock, [&] { in TEST_F() 51 EXPECT_TRUE(lock.owns_lock()); in TEST_F() 54 EXPECT_TRUE(lock in TEST_F() [all...] |
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A 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 114 linux_wake_unlock(struct wake_lock *lock) linux_wake_unlock() argument 127 linux_wake_lock_active(struct wake_lock *lock) linux_wake_lock_active() argument 140 linux_wake_lock_destroy(struct wake_lock *lock) linux_wake_lock_destroy() argument [all...] |
/third_party/python/Lib/test/ |
H A 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 [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
H A D | conditionvariable.h | 51 MARL_NO_EXPORT inline void wait(marl::lock& lock, Predicate&& pred); 59 marl::lock& lock, 69 marl::lock& lock, 95 marl::lock lock(mutex); in notify_one() 111 marl::lock lock(mute in notify_all() 122 wait(marl::lock& lock, Predicate&& pred) wait() argument 150 wait_for( marl::lock& lock, const std::chrono::duration<Rep, Period>& duration, Predicate&& pred) wait_for() argument 158 wait_until( marl::lock& lock, const std::chrono::time_point<Clock, Duration>& timeout, Predicate&& pred) wait_until() argument [all...] |
H A D | event.h | 87 // Note: No lock is held after bool() returns, so the event state may 135 marl::lock lock(mutex); in signal() 151 marl::lock lock(mutex); in wait() 152 cv.wait(lock, [&] { return signalled; }); in wait() 161 marl::lock lock(mutex); in wait_for() 162 if (!cv.wait_for(lock, duration, [&] { return signalled; })) { in wait_for() 174 marl::lock loc in wait_until() [all...] |
/third_party/ltp/testcases/network/nfs/nfslock01/ |
H A D | nfs_flock_func.c | 14 struct flock lock; in lock_reg() local 16 lock.l_type = type; in lock_reg() 17 lock.l_start = offset; in lock_reg() 18 lock.l_whence = whence; in lock_reg() 19 lock.l_len = len; in lock_reg() 21 return (fcntl(fd, cmd, &lock)); in lock_reg() 26 struct flock lock; in lock_test() local 28 lock.l_type = type; in lock_test() 29 lock.l_start = offset; in lock_test() 30 lock in lock_test() [all...] |
/third_party/python/Python/ |
H A D | thread_pthread.h | 179 /* A pthread mutex isn't sufficient to model the Python lock type 182 * -> a thread tries to lock a mutex it already has locked 188 * The pthread_lock struct implements a Python lock as a "locked?" bit 196 /* a <cond, mutex> pair to handle an acquire of a locked lock */ 378 sem_t *lock; in PyThread_allocate_lock() local 385 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock() 387 if (lock) { in PyThread_allocate_lock() 388 status = sem_init(lock,0,1); in PyThread_allocate_lock() 392 PyMem_RawFree((void *)lock); in PyThread_allocate_lock() 393 lock in PyThread_allocate_lock() 402 PyThread_free_lock(PyThread_type_lock lock) PyThread_free_lock() argument 432 PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds, int intr_flag) PyThread_acquire_lock_timed() argument 555 PyThread_release_lock(PyThread_type_lock lock) PyThread_release_lock() argument 575 pthread_lock *lock; PyThread_allocate_lock() local 609 PyThread_free_lock(PyThread_type_lock lock) PyThread_free_lock() argument 630 PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds, int intr_flag) PyThread_acquire_lock_timed() argument 705 PyThread_release_lock(PyThread_type_lock lock) PyThread_release_lock() argument 729 _PyThread_at_fork_reinit(PyThread_type_lock *lock) _PyThread_at_fork_reinit() argument 749 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) PyThread_acquire_lock() argument [all...] |
/third_party/vk-gl-cts/framework/qphelper/ |
H A D | qpTestLog.c | 133 deMutex lock; /*!< Lock for mutable state below. */ member 135 /* State protected by lock. */ 359 log->lock = deMutex_create(DE_NULL); in qpTestLog_createFileLog() 370 if (!log->lock) in qpTestLog_createFileLog() 434 if (log->lock) in qpTestLog_destroy() 435 deMutex_destroy(log->lock); in qpTestLog_destroy() 454 deMutex_lock(log->lock); in qpTestLog_startCase() 482 deMutex_unlock(log->lock); in qpTestLog_startCase() 486 deMutex_unlock(log->lock); in qpTestLog_startCase() 502 deMutex_lock(log->lock); in qpTestLog_endCase() [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | sharedctypes.py | 70 def Value(typecode_or_type, *args, lock=True, ctx=None): 75 if lock is False: 77 if lock in (True, None): 79 lock = ctx.RLock() 80 if not hasattr(lock, 'acquire'): 81 raise AttributeError("%r has no method 'acquire'" % lock) 82 return synchronized(obj, lock, ctx=ctx) 84 def Array(typecode_or_type, size_or_initializer, *, lock=True, ctx=None): 89 if lock is False: 91 if lock i [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/base/ |
H A D | dynamic_annotations.h | 149 // modules that merely use locks. The `lock` argument is a pointer to the lock 152 // Report that a lock has been created at address `lock`. 153 #define ABSL_ANNOTATE_RWLOCK_CREATE(lock) \ 154 ABSL_INTERNAL_GLOBAL_SCOPED(AnnotateRWLockCreate)(__FILE__, __LINE__, lock) 156 // Report that a linker initialized lock has been created at address `lock`. 158 #define ABSL_ANNOTATE_RWLOCK_CREATE_STATIC(lock) \ 160 (__FILE__, __LINE__, lock) [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | threadmessage.c | 30 pthread_mutex_t lock; member 54 if ((ret = pthread_mutex_init(&rmq->lock, NULL))) { in av_thread_message_queue_alloc() 59 pthread_mutex_destroy(&rmq->lock); in av_thread_message_queue_alloc() 65 pthread_mutex_destroy(&rmq->lock); in av_thread_message_queue_alloc() 72 pthread_mutex_destroy(&rmq->lock); in av_thread_message_queue_alloc() 101 pthread_mutex_destroy(&(*mq)->lock); in av_thread_message_queue_free() 111 pthread_mutex_lock(&mq->lock); in av_thread_message_queue_nb_elems() 113 pthread_mutex_unlock(&mq->lock); in av_thread_message_queue_nb_elems() 129 pthread_cond_wait(&mq->cond_send, &mq->lock); in av_thread_message_queue_send_locked() 146 pthread_cond_wait(&mq->cond_recv, &mq->lock); in av_thread_message_queue_recv_locked() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_spin_trylock.c | 20 pthread_spinlock_t lock = 0; variable 25 int ret = pthread_spin_trylock(&lock); in thread1() 28 ret = pthread_spin_unlock(&lock); in thread1() 34 int ret = pthread_spin_lock(&lock); in thread2() 37 ret = pthread_spin_trylock(&lock); in thread2() 39 ret = pthread_spin_unlock(&lock); in thread2() 45 * @tc.desc : Verify that the attempt to lock is successful under multi-threading(success) 53 int ret = pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE); in pthread_spin_trylock_0100() 62 ret = pthread_spin_lock(&lock); in pthread_spin_trylock_0100() 66 ret = pthread_spin_unlock(&lock); in pthread_spin_trylock_0100() [all...] |
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_pipe_sync.c | 41 mtx_init(&sync->lock, mtx_plain); in lvp_pipe_sync_init() 60 mtx_destroy(&sync->lock); in lvp_pipe_sync_finish() 68 mtx_lock(&sync->lock); in lvp_pipe_sync_signal_with_fence() 73 mtx_unlock(&sync->lock); in lvp_pipe_sync_signal_with_fence() 84 mtx_lock(&sync->lock); in lvp_pipe_sync_signal() 90 mtx_unlock(&sync->lock); in lvp_pipe_sync_signal() 102 mtx_lock(&sync->lock); in lvp_pipe_sync_reset() 108 mtx_unlock(&sync->lock); in lvp_pipe_sync_reset() 123 mtx_lock(&src->lock); in lvp_pipe_sync_move() 129 mtx_unlock(&src->lock); in lvp_pipe_sync_move() [all...] |
/third_party/gn/src/gn/ |
H A D | scheduler.cc | 31 std::lock_guard<std::mutex> lock(lock_); in Run() 36 // which may be in turn waiting on the lock. in Run() 48 std::lock_guard<std::mutex> lock(lock_); in FailWithError() 72 std::lock_guard<std::mutex> lock(lock_); in AddGenDependency() 77 std::lock_guard<std::mutex> lock(lock_); in GetGenDependencies() 82 std::lock_guard<std::mutex> lock(lock_); in AddWrittenFile() 88 std::lock_guard<std::mutex> lock(lock_); in AddUnknownGeneratedInput() 93 std::lock_guard<std::mutex> lock(lock_); in AddWriteRuntimeDepsTarget() 98 std::lock_guard<std::mutex> lock(lock_); in GetWriteRuntimeDepsTargets() 104 std::lock_guard<std::mutex> lock(lock in IsFileGeneratedByWriteRuntimeDeps() [all...] |