/third_party/boost/boost/fiber/detail/ |
D | spinlock.hpp | 36 struct spinlock { struct 37 constexpr spinlock() noexcept {} in spinlock() function 43 constexpr spinlock_lock( spinlock &) noexcept {} in spinlock_lock() 49 using spinlock = std::mutex; 52 using spinlock = spinlock_rtm< spinlock_ttas_futex >; 54 using spinlock = spinlock_ttas_futex; 58 using spinlock = spinlock_rtm< spinlock_ttas_adaptive_futex >; 60 using spinlock = spinlock_ttas_adaptive_futex; 64 using spinlock = spinlock_rtm< spinlock_ttas_adaptive >; 66 using spinlock = spinlock_ttas_adaptive; [all …]
|
/third_party/libuv/src/unix/ |
D | spinlock.h | 28 UV_UNUSED(static void uv_spinlock_init(uv_spinlock_t* spinlock)); 29 UV_UNUSED(static void uv_spinlock_lock(uv_spinlock_t* spinlock)); 30 UV_UNUSED(static void uv_spinlock_unlock(uv_spinlock_t* spinlock)); 31 UV_UNUSED(static int uv_spinlock_trylock(uv_spinlock_t* spinlock)); 33 UV_UNUSED(static void uv_spinlock_init(uv_spinlock_t* spinlock)) { in UV_UNUSED() argument 34 ACCESS_ONCE(int, spinlock->lock) = 0; in UV_UNUSED() 37 UV_UNUSED(static void uv_spinlock_lock(uv_spinlock_t* spinlock)) { in UV_UNUSED() argument 38 while (!uv_spinlock_trylock(spinlock)) cpu_relax(); in UV_UNUSED() 41 UV_UNUSED(static void uv_spinlock_unlock(uv_spinlock_t* spinlock)) { in UV_UNUSED() argument 42 ACCESS_ONCE(int, spinlock->lock) = 0; in UV_UNUSED() [all …]
|
/third_party/boost/boost/sort/common/ |
D | deque_cnc.hpp | 64 mutable spinlock spl; 97 std::lock_guard < spinlock > S(spl); in clear() 110 std::lock_guard < spinlock > S(spl); in swap() 126 std::lock_guard < spinlock > S(spl); in size() 137 std::lock_guard < spinlock > S(spl); in max_size() 153 std::lock_guard < spinlock > S(spl); in shrink_to_fit() 164 std::lock_guard < spinlock > S(spl); in empty() 175 std::lock_guard < spinlock > S(spl); in push_back() 187 std::lock_guard < spinlock > S(spl); in emplace_back() 200 std::lock_guard < spinlock > S(spl); in push_back() [all …]
|
/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 …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/boost/boost/smart_ptr/ |
D | atomic_shared_ptr.hpp | 29 mutable boost::detail::spinlock l_; 75 boost::detail::spinlock init = BOOST_DETAIL_SPINLOCK_INIT; 86 boost::detail::spinlock init = BOOST_DETAIL_SPINLOCK_INIT; 94 boost::detail::spinlock::scoped_lock lock( l_ ); in operator =() 107 boost::detail::spinlock::scoped_lock lock( l_ ); in load() 113 boost::detail::spinlock::scoped_lock lock( l_ ); in load() 119 boost::detail::spinlock::scoped_lock lock( l_ ); in operator shared_ptr<T>() 125 boost::detail::spinlock::scoped_lock lock( l_ ); in store() 131 boost::detail::spinlock::scoped_lock lock( l_ ); in store() 138 boost::detail::spinlock::scoped_lock lock( l_ ); in exchange() [all …]
|
/third_party/boost/libs/smart_ptr/test/ |
D | spinlock_test.cpp | 15 static boost::detail::spinlock sp = BOOST_DETAIL_SPINLOCK_INIT; 16 static boost::detail::spinlock sp2 = BOOST_DETAIL_SPINLOCK_INIT; 26 boost::detail::spinlock::scoped_lock lock( sp ); in main() 27 boost::detail::spinlock::scoped_lock lock2( sp2 ); in main()
|
D | spinlock_try_test.cpp | 16 static boost::detail::spinlock sp = BOOST_DETAIL_SPINLOCK_INIT; 17 static boost::detail::spinlock sp2 = BOOST_DETAIL_SPINLOCK_INIT; 38 boost::detail::spinlock::scoped_lock lock( sp ); in main() 40 boost::detail::spinlock::scoped_lock lock2( sp2 ); in main()
|
/third_party/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()
|
/third_party/boost/boost/smart_ptr/detail/ |
D | spinlock_pool.hpp | 38 static spinlock pool_[ 41 ]; 42 static spinlock & spinlock_for( void const * pv ) in spinlock_for() 56 spinlock & sp_; 75 template< int M > spinlock spinlock_pool< M >::pool_[ 41 ] =
|
D | spinlock_nt.hpp | 33 class spinlock class 72 spinlock & sp_; 79 explicit scoped_lock( spinlock & sp ): sp_( sp ) in scoped_lock()
|
D | spinlock_pt.hpp | 33 class spinlock class 62 spinlock & sp_; 69 explicit scoped_lock( spinlock & sp ): sp_( sp ) in scoped_lock()
|