Searched refs:thread_lock (Results 1 – 7 of 7) sorted by relevance
/tools/perf/bench/ |
D | futex-wake.c | 37 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()
|
D | futex-hash.c | 37 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()
|
D | futex-requeue.c | 37 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()
|
D | futex-lock-pi.c | 37 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()
|
D | futex-wake-parallel.c | 52 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()
|
D | epoll-ctl.c | 61 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()
|
D | epoll-wait.c | 112 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()
|