Home
last modified time | relevance | path

Searched refs:spinlock (Results 1 – 25 of 43) sorted by relevance

12

/third_party/libuv/src/unix/
Dspinlock.h28 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/skia/third_party/externals/abseil-cpp/absl/base/
Dspinlock_test_common.cc82 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 …]
DBUILD.gn126 "internal/spinlock.cc",
137 "internal/spinlock.h",
DCMakeLists.txt179 "internal/spinlock.h"
186 "internal/spinlock.cc"
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_unlock/
D1-1.c32 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()
D1-2.c34 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()
D3-1.c32 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/
D2-1.c36 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()
D2-2.c43 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()
D1-1.c29 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()
D4-1.c33 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/
D1-2.c30 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()
D3-1.c37 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()
D3-2.c44 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()
D1-1.c30 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/
D1-1.c27 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()
D3-1.c32 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/
D1-1.c31 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()
D4-1.c28 pthread_spinlock_t spinlock; in main() local
33 rc = pthread_spin_trylock(&spinlock); in main()
/third_party/flutter/skia/third_party/externals/sdl/src/
DSDL_assert.c267 static SDL_SpinLock spinlock = 0; in SDL_ReportAssertion() local
270 SDL_AtomicLock(&spinlock); in SDL_ReportAssertion()
274 SDL_AtomicUnlock(&spinlock); in SDL_ReportAssertion()
278 SDL_AtomicUnlock(&spinlock); in SDL_ReportAssertion()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Dspinlock_benchmark.cc34 static auto* spinlock = new absl::base_internal::SpinLock(scheduling_mode); in BM_SpinLock() local
36 absl::base_internal::SpinLockHolder holder(spinlock); in BM_SpinLock()
Dspinlock_akaros.inc28 // spinlock. Our callers assume will not call into libraries or other
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_pcb.h233 struct spinlock ipi_pktlog_mtx;
534 struct spinlock inp_create_lock;
535 struct spinlock inp_rdata_lock;
632 struct spinlock tcb_lock;
633 struct spinlock tcb_send_lock;
/third_party/openssl/crypto/
Darmv4cpuid.pl55 add r6,r3,r2 @ &spinlock
/third_party/libbpf/ci/vmtest/configs/
DALLOWLIST-5.5.041 spinlock

12