Home
last modified time | relevance | path

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

/linux/tools/perf/bench/
H A Dfutex-wake.c38 static struct mutex thread_lock; variable
69 mutex_lock(&thread_lock); in workerfn()
73 cond_wait(&thread_worker, &thread_lock); in workerfn()
74 mutex_unlock(&thread_lock); in workerfn()
183 mutex_init(&thread_lock); in bench_futex_wake()
195 mutex_lock(&thread_lock); in bench_futex_wake()
197 cond_wait(&thread_parent, &thread_lock); in bench_futex_wake()
199 mutex_unlock(&thread_lock); in bench_futex_wake()
231 mutex_destroy(&thread_lock); in bench_futex_wake()
H A Dfutex-hash.c38 static struct mutex thread_lock; variable
77 mutex_lock(&thread_lock); in workerfn()
81 cond_wait(&thread_worker, &thread_lock); in workerfn()
82 mutex_unlock(&thread_lock); in workerfn()
169 mutex_init(&thread_lock); in bench_futex_hash()
207 mutex_lock(&thread_lock); in bench_futex_hash()
209 cond_wait(&thread_parent, &thread_lock); in bench_futex_hash()
211 mutex_unlock(&thread_lock); in bench_futex_hash()
225 mutex_destroy(&thread_lock); in bench_futex_hash()
H A Dfutex-lock-pi.c38 static struct mutex thread_lock; variable
87 mutex_lock(&thread_lock); in workerfn()
91 cond_wait(&thread_worker, &thread_lock); in workerfn()
92 mutex_unlock(&thread_lock); in workerfn()
203 mutex_init(&thread_lock); in bench_futex_lock_pi()
212 mutex_lock(&thread_lock); in bench_futex_lock_pi()
214 cond_wait(&thread_parent, &thread_lock); in bench_futex_lock_pi()
216 mutex_unlock(&thread_lock); in bench_futex_lock_pi()
230 mutex_destroy(&thread_lock); in bench_futex_lock_pi()
H A Dfutex-requeue.c38 static struct mutex thread_lock; variable
86 mutex_lock(&thread_lock); in workerfn()
90 cond_wait(&thread_worker, &thread_lock); in workerfn()
91 mutex_unlock(&thread_lock); in workerfn()
214 mutex_init(&thread_lock); in bench_futex_requeue()
226 mutex_lock(&thread_lock); in bench_futex_requeue()
228 cond_wait(&thread_parent, &thread_lock); in bench_futex_requeue()
230 mutex_unlock(&thread_lock); in bench_futex_requeue()
304 mutex_destroy(&thread_lock); in bench_futex_requeue()
H A Dfutex-wake-parallel.c53 static struct mutex thread_lock; variable
132 mutex_lock(&thread_lock); in blocked_workerfn()
136 cond_wait(&thread_worker, &thread_lock); in blocked_workerfn()
137 mutex_unlock(&thread_lock); in blocked_workerfn()
302 mutex_init(&thread_lock); in bench_futex_wake_parallel()
315 mutex_lock(&thread_lock); in bench_futex_wake_parallel()
317 cond_wait(&thread_parent, &thread_lock); in bench_futex_wake_parallel()
319 mutex_unlock(&thread_lock); in bench_futex_wake_parallel()
342 mutex_destroy(&thread_lock); in bench_futex_wake_parallel()
H A Depoll-ctl.c62 static struct mutex thread_lock; variable
178 mutex_lock(&thread_lock); in workerfn()
182 cond_wait(&thread_worker, &thread_lock); in workerfn()
183 mutex_unlock(&thread_lock); in workerfn()
371 mutex_init(&thread_lock); in bench_epoll_ctl()
381 mutex_lock(&thread_lock); in bench_epoll_ctl()
383 cond_wait(&thread_parent, &thread_lock); in bench_epoll_ctl()
385 mutex_unlock(&thread_lock); in bench_epoll_ctl()
400 mutex_destroy(&thread_lock); in bench_epoll_ctl()
H A Depoll-wait.c113 static struct mutex thread_lock; variable
193 mutex_lock(&thread_lock); in workerfn()
197 cond_wait(&thread_worker, &thread_lock); in workerfn()
198 mutex_unlock(&thread_lock); in workerfn()
494 mutex_init(&thread_lock); in bench_epoll_wait()
504 mutex_lock(&thread_lock); in bench_epoll_wait()
506 cond_wait(&thread_parent, &thread_lock); in bench_epoll_wait()
508 mutex_unlock(&thread_lock); in bench_epoll_wait()
533 mutex_destroy(&thread_lock); in bench_epoll_wait()
/linux/drivers/hid/usbhid/
H A Dhiddev.c46 struct mutex thread_lock; member
255 mutex_init(&list->thread_lock); in __hiddev_open()
333 retval = mutex_lock_interruptible(&list->thread_lock); in hiddev_read()
356 mutex_unlock(&list->thread_lock); in hiddev_read()
358 if (mutex_lock_interruptible(&list->thread_lock)) { in hiddev_read()
369 mutex_unlock(&list->thread_lock); in hiddev_read()
383 mutex_unlock(&list->thread_lock); in hiddev_read()
393 mutex_unlock(&list->thread_lock); in hiddev_read()
403 mutex_unlock(&list->thread_lock); in hiddev_read()
/linux/drivers/pcmcia/
H A Dcs.c159 spin_lock_init(&socket->thread_lock); in pcmcia_register_socket()
626 spin_lock_irqsave(&skt->thread_lock, flags); in pccardd()
631 spin_unlock_irqrestore(&skt->thread_lock, flags); in pccardd()
704 spin_lock_irqsave(&s->thread_lock, flags); in pcmcia_parse_events()
706 spin_unlock_irqrestore(&s->thread_lock, flags); in pcmcia_parse_events()
729 spin_lock_irqsave(&s->thread_lock, flags); in pcmcia_parse_uevents()
731 spin_unlock_irqrestore(&s->thread_lock, flags); in pcmcia_parse_uevents()
/linux/include/pcmcia/
H A Dss.h195 spinlock_t thread_lock; member
/linux/Documentation/pcmcia/
H A Dlocking.rst76 - by thread_lock::