Home
last modified time | relevance | path

Searched refs:thread_lock (Results 1 – 7 of 7) sorted by relevance

/tools/perf/bench/
Dfutex-wake.c37 static pthread_mutex_t thread_lock; variable
68 pthread_mutex_lock(&thread_lock); in workerfn()
72 pthread_cond_wait(&thread_worker, &thread_lock); in workerfn()
73 pthread_mutex_unlock(&thread_lock); in workerfn()
171 pthread_mutex_init(&thread_lock, NULL); in bench_futex_wake()
183 pthread_mutex_lock(&thread_lock); in bench_futex_wake()
185 pthread_cond_wait(&thread_parent, &thread_lock); in bench_futex_wake()
187 pthread_mutex_unlock(&thread_lock); in bench_futex_wake()
219 pthread_mutex_destroy(&thread_lock); in bench_futex_wake()
Dfutex-hash.c37 static pthread_mutex_t thread_lock; variable
76 pthread_mutex_lock(&thread_lock); in workerfn()
80 pthread_cond_wait(&thread_worker, &thread_lock); in workerfn()
81 pthread_mutex_unlock(&thread_lock); in workerfn()
166 pthread_mutex_init(&thread_lock, NULL); in bench_futex_hash()
194 pthread_mutex_lock(&thread_lock); in bench_futex_hash()
196 pthread_cond_wait(&thread_parent, &thread_lock); in bench_futex_hash()
198 pthread_mutex_unlock(&thread_lock); in bench_futex_hash()
212 pthread_mutex_destroy(&thread_lock); in bench_futex_hash()
Dfutex-requeue.c37 static pthread_mutex_t thread_lock; variable
85 pthread_mutex_lock(&thread_lock); in workerfn()
89 pthread_cond_wait(&thread_worker, &thread_lock); in workerfn()
90 pthread_mutex_unlock(&thread_lock); in workerfn()
201 pthread_mutex_init(&thread_lock, NULL); in bench_futex_requeue()
213 pthread_mutex_lock(&thread_lock); in bench_futex_requeue()
215 pthread_cond_wait(&thread_parent, &thread_lock); in bench_futex_requeue()
217 pthread_mutex_unlock(&thread_lock); in bench_futex_requeue()
291 pthread_mutex_destroy(&thread_lock); in bench_futex_requeue()
Dfutex-lock-pi.c37 static pthread_mutex_t thread_lock; variable
86 pthread_mutex_lock(&thread_lock); in workerfn()
90 pthread_cond_wait(&thread_worker, &thread_lock); in workerfn()
91 pthread_mutex_unlock(&thread_lock); in workerfn()
189 pthread_mutex_init(&thread_lock, NULL); in bench_futex_lock_pi()
200 pthread_mutex_lock(&thread_lock); in bench_futex_lock_pi()
202 pthread_cond_wait(&thread_parent, &thread_lock); in bench_futex_lock_pi()
204 pthread_mutex_unlock(&thread_lock); in bench_futex_lock_pi()
218 pthread_mutex_destroy(&thread_lock); in bench_futex_lock_pi()
Dfutex-wake-parallel.c52 static pthread_mutex_t thread_lock; variable
128 pthread_mutex_lock(&thread_lock); in blocked_workerfn()
132 pthread_cond_wait(&thread_worker, &thread_lock); in blocked_workerfn()
133 pthread_mutex_unlock(&thread_lock); in blocked_workerfn()
286 pthread_mutex_init(&thread_lock, NULL); in bench_futex_wake_parallel()
299 pthread_mutex_lock(&thread_lock); in bench_futex_wake_parallel()
301 pthread_cond_wait(&thread_parent, &thread_lock); in bench_futex_wake_parallel()
303 pthread_mutex_unlock(&thread_lock); in bench_futex_wake_parallel()
326 pthread_mutex_destroy(&thread_lock); in bench_futex_wake_parallel()
Depoll-ctl.c61 static pthread_mutex_t thread_lock; variable
177 pthread_mutex_lock(&thread_lock); in workerfn()
181 pthread_cond_wait(&thread_worker, &thread_lock); in workerfn()
182 pthread_mutex_unlock(&thread_lock); in workerfn()
357 pthread_mutex_init(&thread_lock, NULL); in bench_epoll_ctl()
367 pthread_mutex_lock(&thread_lock); in bench_epoll_ctl()
369 pthread_cond_wait(&thread_parent, &thread_lock); in bench_epoll_ctl()
371 pthread_mutex_unlock(&thread_lock); in bench_epoll_ctl()
386 pthread_mutex_destroy(&thread_lock); in bench_epoll_ctl()
Depoll-wait.c112 static pthread_mutex_t thread_lock; variable
192 pthread_mutex_lock(&thread_lock); in workerfn()
196 pthread_cond_wait(&thread_worker, &thread_lock); in workerfn()
197 pthread_mutex_unlock(&thread_lock); in workerfn()
475 pthread_mutex_init(&thread_lock, NULL); in bench_epoll_wait()
485 pthread_mutex_lock(&thread_lock); in bench_epoll_wait()
487 pthread_cond_wait(&thread_parent, &thread_lock); in bench_epoll_wait()
489 pthread_mutex_unlock(&thread_lock); in bench_epoll_wait()
514 pthread_mutex_destroy(&thread_lock); in bench_epoll_wait()