Home
last modified time | relevance | path

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

/linux/tools/perf/bench/
H A Dfutex-wake.c38 static struct mutex thread_lock; variable
71 mutex_lock(&thread_lock); in workerfn()
75 cond_wait(&thread_worker, &thread_lock); in workerfn()
76 mutex_unlock(&thread_lock); in workerfn()
186 mutex_init(&thread_lock); in bench_futex_wake()
198 mutex_lock(&thread_lock); in bench_futex_wake()
200 cond_wait(&thread_parent, &thread_lock); in bench_futex_wake()
202 mutex_unlock(&thread_lock); in bench_futex_wake()
234 mutex_destroy(&thread_lock); in bench_futex_wake()
H A Dfutex-lock-pi.c38 static struct mutex thread_lock; variable
90 mutex_lock(&thread_lock); in workerfn()
94 cond_wait(&thread_worker, &thread_lock); in workerfn()
95 mutex_unlock(&thread_lock); in workerfn()
206 mutex_init(&thread_lock); in bench_futex_lock_pi()
216 mutex_lock(&thread_lock); in bench_futex_lock_pi()
218 cond_wait(&thread_parent, &thread_lock); in bench_futex_lock_pi()
220 mutex_unlock(&thread_lock); in bench_futex_lock_pi()
234 mutex_destroy(&thread_lock); in bench_futex_lock_pi()
H A Dfutex-hash.c39 static struct mutex thread_lock; variable
80 mutex_lock(&thread_lock); in workerfn()
84 cond_wait(&thread_worker, &thread_lock); in workerfn()
85 mutex_unlock(&thread_lock); in workerfn()
174 mutex_init(&thread_lock); in bench_futex_hash()
212 mutex_lock(&thread_lock); in bench_futex_hash()
214 cond_wait(&thread_parent, &thread_lock); in bench_futex_hash()
216 mutex_unlock(&thread_lock); in bench_futex_hash()
230 mutex_destroy(&thread_lock); in bench_futex_hash()
H A Dfutex-requeue.c38 static struct mutex thread_lock; variable
89 mutex_lock(&thread_lock); in workerfn()
93 cond_wait(&thread_worker, &thread_lock); in workerfn()
94 mutex_unlock(&thread_lock); in workerfn()
219 mutex_init(&thread_lock); in bench_futex_requeue()
231 mutex_lock(&thread_lock); in bench_futex_requeue()
233 cond_wait(&thread_parent, &thread_lock); in bench_futex_requeue()
235 mutex_unlock(&thread_lock); in bench_futex_requeue()
309 mutex_destroy(&thread_lock); in bench_futex_requeue()
H A Dfutex-wake-parallel.c53 static struct mutex thread_lock; variable
135 mutex_lock(&thread_lock); in blocked_workerfn()
139 cond_wait(&thread_worker, &thread_lock); in blocked_workerfn()
140 mutex_unlock(&thread_lock); in blocked_workerfn()
308 mutex_init(&thread_lock); in bench_futex_wake_parallel()
321 mutex_lock(&thread_lock); in bench_futex_wake_parallel()
323 cond_wait(&thread_parent, &thread_lock); in bench_futex_wake_parallel()
325 mutex_unlock(&thread_lock); in bench_futex_wake_parallel()
348 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()
/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()
609 spin_lock_irqsave(&skt->thread_lock, flags); in pccardd()
614 spin_unlock_irqrestore(&skt->thread_lock, flags); in pccardd()
687 spin_lock_irqsave(&s->thread_lock, flags); in pcmcia_parse_events()
689 spin_unlock_irqrestore(&s->thread_lock, flags); in pcmcia_parse_events()
712 spin_lock_irqsave(&s->thread_lock, flags); in pcmcia_parse_uevents()
714 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::