/external/openscreen/third_party/abseil/src/absl/base/ |
D | spinlock_test_common.cc | 82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction() argument 84 SpinLockHolder h(spinlock); in TestFunction() 93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest() argument 96 threads.push_back(std::thread(TestFunction, i, spinlock)); in ThreadedTest() 102 SpinLockHolder h(spinlock); in ThreadedTest() 113 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST() local 114 spinlock.Lock(); in TEST() 116 spinlock.Unlock(); in TEST() 199 SpinLock spinlock; in TEST() local 200 ThreadedTest(&spinlock); in TEST() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/base/ |
D | spinlock_test_common.cc | 82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction() argument 84 SpinLockHolder h(spinlock); in TestFunction() 93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest() argument 96 threads.push_back(std::thread(TestFunction, i, spinlock)); in ThreadedTest() 102 SpinLockHolder h(spinlock); in ThreadedTest() 113 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST() local 114 spinlock.Lock(); in TEST() 116 spinlock.Unlock(); in TEST() 199 SpinLock spinlock; in TEST() local 200 ThreadedTest(&spinlock); in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/ |
D | spinlock_test_common.cc | 82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction() argument 84 SpinLockHolder h(spinlock); in TestFunction() 93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest() argument 96 threads.push_back(std::thread(TestFunction, i, spinlock)); in ThreadedTest() 102 SpinLockHolder h(spinlock); in ThreadedTest() 113 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST() local 114 spinlock.Lock(); in TEST() 116 spinlock.Unlock(); in TEST() 199 SpinLock spinlock; in TEST() local 200 ThreadedTest(&spinlock); in TEST() [all …]
|
/external/abseil-cpp/absl/base/ |
D | spinlock_test_common.cc | 82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction() argument 84 SpinLockHolder h(spinlock); in TestFunction() 93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest() argument 96 threads.push_back(std::thread(TestFunction, i, spinlock)); in ThreadedTest() 102 SpinLockHolder h(spinlock); in ThreadedTest() 109 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST() local 110 spinlock.Lock(); in TEST() 112 spinlock.Unlock(); in TEST() 199 SpinLock spinlock; in TEST() local 200 ThreadedTest(&spinlock); in TEST() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/base/ |
D | spinlock_test_common.cc | 82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction() argument 84 SpinLockHolder h(spinlock); in TestFunction() 93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest() argument 96 threads.push_back(std::thread(TestFunction, i, spinlock)); in ThreadedTest() 102 SpinLockHolder h(spinlock); in ThreadedTest() 109 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST() local 110 spinlock.Lock(); in TEST() 112 spinlock.Unlock(); in TEST() 199 SpinLock spinlock; in TEST() local 200 ThreadedTest(&spinlock); in TEST() [all …]
|
/external/angle/third_party/abseil-cpp/absl/base/ |
D | spinlock_test_common.cc | 82 static void TestFunction(int thread_salt, SpinLock* spinlock) { in TestFunction() argument 84 SpinLockHolder h(spinlock); in TestFunction() 93 static void ThreadedTest(SpinLock* spinlock) { in ThreadedTest() argument 97 threads.push_back(std::thread(TestFunction, i, spinlock)); in ThreadedTest() 103 SpinLockHolder h(spinlock); in ThreadedTest() 114 SpinLock spinlock(base_internal::SCHEDULE_KERNEL_ONLY); in TEST() local 115 spinlock.Lock(); in TEST() 117 spinlock.Unlock(); in TEST() 200 SpinLock spinlock; in TEST() local 201 ThreadedTest(&spinlock); in TEST() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_unlock/ |
D | 1-1.c | 32 static pthread_spinlock_t spinlock; variable 47 rc = pthread_spin_trylock(&spinlock); in fn_chld() 56 if (pthread_spin_unlock(&spinlock)) { in fn_chld() 72 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 80 if (pthread_spin_lock(&spinlock) != 0) { in main() 88 rc = pthread_spin_unlock(&spinlock); in main() 108 if (pthread_spin_trylock(&spinlock) != 0) { in main() 115 if (pthread_spin_unlock(&spinlock) != 0) { in main() 120 if (pthread_spin_destroy(&spinlock) != 0) { in main()
|
D | 1-2.c | 34 static pthread_spinlock_t spinlock; variable 49 rc = pthread_spin_lock(&spinlock); in fn_chld() 61 if (pthread_spin_unlock(&spinlock)) { in fn_chld() 77 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 85 if (pthread_spin_lock(&spinlock) != 0) { in main() 115 if (pthread_spin_unlock(&spinlock) != 0) { in main() 139 if (pthread_spin_destroy(&spinlock) != 0) { in main()
|
D | 3-1.c | 32 static pthread_spinlock_t spinlock; variable 45 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in fn_chld() 52 rc = pthread_spin_lock(&spinlock); in fn_chld() 66 pthread_spin_unlock(&spinlock); in fn_chld() 68 if (pthread_spin_destroy(&spinlock) != 0) { in fn_chld() 96 rc = pthread_spin_unlock(&spinlock); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
D | 2-1.c | 36 pthread_spinlock_t spinlock; member 83 if ((pthread_spin_init(&(spinlock_data->spinlock), pshared)) != 0) { in main() 89 if ((pthread_spin_lock(&(spinlock_data->spinlock))) != 0) { in main() 110 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main() 141 if ((pthread_spin_trylock(&(spinlock_data->spinlock))) != EBUSY) { in main() 157 if ((pthread_spin_trylock(&(spinlock_data->spinlock))) != 0) { in main() 164 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main() 169 if (pthread_spin_destroy(&(spinlock_data->spinlock)) != 0) { in main()
|
D | 2-2.c | 43 pthread_spinlock_t spinlock; member 90 if ((pthread_spin_init(&(spinlock_data->spinlock), pshared)) != 0) { in main() 96 if ((pthread_spin_lock(&(spinlock_data->spinlock))) != 0) { in main() 116 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main() 147 rc = pthread_spin_trylock(&(spinlock_data->spinlock)); in main() 161 rc = pthread_spin_trylock(&(spinlock_data->spinlock)); in main() 169 if (pthread_spin_unlock(&(spinlock_data->spinlock)) != 0) { in main() 174 if (pthread_spin_destroy(&(spinlock_data->spinlock)) != 0) { in main()
|
D | 1-1.c | 29 static pthread_spinlock_t spinlock; variable 42 rc = pthread_spin_init(&spinlock, pshared); in main() 51 if (pthread_spin_lock(&spinlock) != 0) { in main() 59 if (pthread_spin_unlock(&spinlock) != 0) { in main() 64 rc = pthread_spin_destroy(&spinlock); in main()
|
D | 4-1.c | 33 static pthread_spinlock_t spinlock; variable 41 rc = pthread_spin_init(&spinlock, pshared); in fn_chld() 65 rc = pthread_spin_init(&spinlock, pshared); in main() 74 if (pthread_spin_lock(&spinlock) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/ |
D | 1-2.c | 30 static pthread_spinlock_t spinlock; variable 46 rc = pthread_spin_lock(&spinlock); in fn_chld() 60 if (pthread_spin_unlock(&spinlock)) { in fn_chld() 77 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 85 if (pthread_spin_lock(&spinlock) != 0) { in main() 118 if (pthread_spin_unlock(&spinlock) != 0) { in main() 144 if (pthread_spin_destroy(&spinlock) != 0) { in main()
|
D | 3-1.c | 37 pthread_spinlock_t spinlock; in main() local 46 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 54 if (pthread_spin_lock(&spinlock) != 0) { in main() 65 rc = pthread_spin_lock(&spinlock); in main() 78 pthread_spin_unlock(&spinlock); in main() 81 pthread_spin_destroy(&spinlock); in main()
|
D | 3-2.c | 44 pthread_spinlock_t spinlock; in main() local 59 rc = pthread_spin_lock(&spinlock); in main() 66 pthread_spin_unlock(&spinlock); in main() 69 pthread_spin_destroy(&spinlock); in main()
|
D | 1-1.c | 30 static pthread_spinlock_t spinlock; variable 74 rc = pthread_spin_lock(&spinlock); in fn_chld() 113 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 121 if (pthread_spin_lock(&spinlock) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_destroy/ |
D | 1-1.c | 27 static pthread_spinlock_t spinlock; variable 34 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 42 if (pthread_spin_lock(&spinlock) != 0) { in main() 51 if (pthread_spin_unlock(&spinlock) != 0) { in main() 57 rc = pthread_spin_destroy(&spinlock); in main()
|
D | 3-1.c | 32 static pthread_spinlock_t spinlock; variable 39 rc = pthread_spin_destroy(&spinlock); in fn_chld() 55 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 63 if (pthread_spin_lock(&spinlock) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/ |
D | 1-1.c | 31 static pthread_spinlock_t spinlock; variable 70 rc = pthread_spin_trylock(&spinlock); in fn_chld() 80 if (pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0) { in main() 88 if (pthread_spin_trylock(&spinlock) != 0) { in main()
|
D | 4-1.c | 28 pthread_spinlock_t spinlock; in main() local 33 rc = pthread_spin_trylock(&spinlock); in main()
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | darwin-avoid-spinlock.m | 1 // RUN: %check_clang_tidy %s darwin-avoid-spinlock %t 13 …air_lock_lock() or dispatch queue APIs instead of the deprecated OSSpinLock [darwin-avoid-spinlock] 15 …air_lock_lock() or dispatch queue APIs instead of the deprecated OSSpinLock [darwin-avoid-spinlock] 17 …air_lock_lock() or dispatch queue APIs instead of the deprecated OSSpinLock [darwin-avoid-spinlock]
|
/external/perfetto/src/profiling/memory/ |
D | shared_ring_buffer.h | 119 Buffer BeginWrite(const ScopedSpinlock& spinlock, size_t size); 125 Stats GetStats(ScopedSpinlock& spinlock) { in GetStats() argument 126 PERFETTO_DCHECK(spinlock.locked()); in GetStats() 142 auto lock = ScopedSpinlock(&meta_->spinlock, mode); in AcquireLock() 182 alignas(8) Spinlock spinlock; member
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/ |
D | spinlock_benchmark.cc | 34 static auto* spinlock = new absl::base_internal::SpinLock(scheduling_mode); in BM_SpinLock() local 36 absl::base_internal::SpinLockHolder holder(spinlock); in BM_SpinLock()
|
/external/webrtc/third_party/abseil-cpp/absl/base/internal/ |
D | spinlock_benchmark.cc | 34 static auto* spinlock = new absl::base_internal::SpinLock(scheduling_mode); in BM_SpinLock() local 36 absl::base_internal::SpinLockHolder holder(spinlock); in BM_SpinLock()
|