Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 200) sorted by relevance

12345678

/sysdeps/htl/
A Dpt-cond-destroy.c23 __pthread_cond_destroy (pthread_cond_t *cond) in __pthread_cond_destroy() argument
26 unsigned int wrefs = atomic_fetch_or_acquire (&cond->__wrefs, 1); in __pthread_cond_destroy()
28 __pthread_spin_wait (&cond->__lock); in __pthread_cond_destroy()
29 if (cond->__queue) in __pthread_cond_destroy()
31 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_destroy()
34 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_destroy()
38 __gsync_wait (__mach_task_self (), (vm_offset_t) &cond->__wrefs, wrefs, in __pthread_cond_destroy()
40 wrefs = atomic_load_acquire (&cond->__wrefs); in __pthread_cond_destroy()
A Dpt-cond-timedwait.c54 pthread_cond_t *cond; member
62 pthread_cond_t *cond = ctx->cond; in cancel_hook() local
65 __pthread_spin_wait (&cond->__lock); in cancel_hook()
71 __pthread_spin_unlock (&cond->__lock); in cancel_hook()
106 ctx.cond = cond; in __pthread_cond_timedwait_internal()
137 __pthread_spin_wait (&cond->__lock); in __pthread_cond_timedwait_internal()
138 __pthread_enqueue (&cond->__queue, self); in __pthread_cond_timedwait_internal()
140 clock_id = cond->__attr->__clock; in __pthread_cond_timedwait_internal()
141 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_timedwait_internal()
161 __pthread_spin_wait (&cond->__lock); in __pthread_cond_timedwait_internal()
[all …]
A Dpt-cond-brdcast.c25 __pthread_cond_broadcast (pthread_cond_t *cond) in __pthread_cond_broadcast() argument
29 __pthread_spin_wait (&cond->__lock); in __pthread_cond_broadcast()
30 while ((wakeup = cond->__queue)) in __pthread_cond_broadcast()
33 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_broadcast()
37 __pthread_spin_wait (&cond->__lock); in __pthread_cond_broadcast()
39 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_broadcast()
A Dpt-cond-init.c26 __pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t * attr) in __pthread_cond_init() argument
30 *cond = (pthread_cond_t) __PTHREAD_COND_INITIALIZER; in __pthread_cond_init()
39 cond->__attr = malloc (sizeof *attr); in __pthread_cond_init()
40 if (cond->__attr == NULL) in __pthread_cond_init()
43 *cond->__attr = *attr; in __pthread_cond_init()
A Dpt-cond-signal.c26 __pthread_cond_signal (pthread_cond_t *cond) in __pthread_cond_signal() argument
30 __pthread_spin_wait (&cond->__lock); in __pthread_cond_signal()
31 wakeup = cond->__queue; in __pthread_cond_signal()
34 __pthread_spin_unlock (&cond->__lock); in __pthread_cond_signal()
A Dpt-cond-wait.c24 extern int __pthread_cond_timedwait_internal (pthread_cond_t *cond,
34 __pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex) in __pthread_cond_wait() argument
36 return __pthread_cond_timedwait_internal (cond, mutex, -1, 0); in __pthread_cond_wait()
A DpthreadP.h44 extern int __pthread_cond_init (pthread_cond_t *cond,
46 extern int __pthread_cond_signal (pthread_cond_t *cond);
47 extern int __pthread_cond_broadcast (pthread_cond_t *cond);
48 extern int __pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex);
49 extern int __pthread_cond_timedwait (pthread_cond_t *cond,
52 extern int __pthread_cond_clockwait (pthread_cond_t *cond,
57 extern int __pthread_cond_destroy (pthread_cond_t *cond);
/sysdeps/mach/hurd/htl/
A Dpt-hurd-cond-timedwait.c32 __pthread_hurd_cond_timedwait_np (pthread_cond_t *cond, in __pthread_hurd_cond_timedwait_np() argument
59 __pthread_spin_wait (&cond->__lock); in __pthread_hurd_cond_timedwait_internal()
65 __pthread_spin_unlock (&cond->__lock); in __pthread_hurd_cond_timedwait_internal()
84 __pthread_spin_wait (&cond->__lock); in __pthread_hurd_cond_timedwait_internal()
93 __pthread_enqueue (&cond->__queue, self); in __pthread_hurd_cond_timedwait_internal()
94 if (cond->__attr) in __pthread_hurd_cond_timedwait_internal()
95 clock_id = cond->__attr->__clock; in __pthread_hurd_cond_timedwait_internal()
99 __pthread_spin_unlock (&cond->__lock); in __pthread_hurd_cond_timedwait_internal()
116 atomic_fetch_add_relaxed (&cond->__wrefs, 2); in __pthread_hurd_cond_timedwait_internal()
130 __pthread_spin_wait (&cond->__lock); in __pthread_hurd_cond_timedwait_internal()
[all …]
A Dpt-hurd-cond-wait.c26 extern int __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond,
32 __pthread_hurd_cond_wait_np (pthread_cond_t *cond, pthread_mutex_t *mutex) in __pthread_hurd_cond_wait_np() argument
36 err = __pthread_hurd_cond_timedwait_internal (cond, mutex, NULL); in __pthread_hurd_cond_wait_np()
/sysdeps/pthread/
A Dtst-cond20.c26 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable
50 pthread_cond_timedwait (&cond, &mut, &ts); in tf()
52 pthread_cond_wait (&cond, &mut); in tf()
107 pthread_cond_broadcast (&cond); in do_test()
110 pthread_cond_signal (&cond); in do_test()
114 pthread_cond_signal (&cond); in do_test()
115 pthread_cond_broadcast (&cond); in do_test()
121 err = pthread_cond_destroy (&cond); in do_test()
130 memset (&cond, (char) i, sizeof (cond)); in do_test()
149 err = pthread_cond_init (&cond, NULL); in do_test()
A Dtst-cnd-basic.c26 static cnd_t cond; variable
38 if (cnd_signal (&cond) != thrd_success) in signal_parent()
51 if (cnd_init (&cond) != thrd_success) in do_test()
63 if (cnd_wait (&cond, &mutex) != thrd_success) in do_test()
75 cnd_destroy (&cond); in do_test()
A Dtst-cnd-timedwait.c26 static cnd_t cond; variable
38 if (cnd_signal (&cond) != thrd_success) in signal_parent()
52 if (cnd_init (&cond) != thrd_success) in do_test()
69 if (cnd_timedwait (&cond, &mutex, &w_time) != thrd_success) in do_test()
79 cnd_destroy (&cond); in do_test()
A Dtst-cnd-broadcast.c27 static cnd_t cond; variable
42 cnd_wait (&cond, &mutex); in child_wait()
56 if (cnd_init (&cond) != thrd_success) in do_test()
81 if (cnd_broadcast (&cond) != thrd_success) in do_test()
92 cnd_destroy (&cond); in do_test()
A Dtst-cond9.c26 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable
33 int err = pthread_cond_wait (&cond, &mut); in tf()
55 err = pthread_cond_timedwait (&cond, &mut, &ts); in tf()
78 printf ("&cond = %p\n&mut = %p\n", &cond, &mut); in do_test()
80 err = pthread_cond_wait (&cond, &mut); in do_test()
102 err = pthread_cond_timedwait (&cond, &mut, &ts); in do_test()
A Dtst-cond1.c24 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable
39 pthread_cond_signal (&cond); in tf()
59 printf ("&cond = %p\n&mut = %p\n", &cond, &mut); in do_test()
78 err = pthread_cond_wait (&cond, &mut); in do_test()
A Dtst-cond19.c25 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable
43 int e = pthread_cond_timedwait (&cond, &mut, &ts); in do_test()
57 e = pthread_cond_timedwait (&cond, &mut, &ts); in do_test()
A Dtst-cond11.c38 pthread_cond_t cond; in run_test() local
51 TEST_COMPARE (pthread_cond_init (&cond, &condattr), 0); in run_test()
70 TEST_COMPARE (pthread_cond_timedwait (&cond, &mut, &ts_timeout), ETIMEDOUT); in run_test()
73 TEST_COMPARE (pthread_cond_clockwait (&cond, &mut, wait_clock, &ts_timeout), in run_test()
80 TEST_COMPARE (pthread_cond_destroy (&cond), 0); in run_test()
A Dcnd_timedwait.c22 cnd_timedwait (cnd_t *restrict cond, mtx_t *restrict mutex, in cnd_timedwait() argument
25 int err_code = __pthread_cond_timedwait ((pthread_cond_t *) cond, in cnd_timedwait()
A Dtst-cond4.c43 pthread_cond_t *cond; in do_test() local
80 cond = (pthread_cond_t *) (((uintptr_t) (mut2 + 1) in do_test()
84 condition = (int *) (((uintptr_t) (cond + 1) + __alignof (int)) in do_test()
171 if (pthread_cond_init (cond, &ca) != 0) in do_test()
205 if (pthread_cond_wait (cond, mut2) != 0) in do_test()
236 if (pthread_cond_signal (cond) != 0) in do_test()
A Dtst-cond7.c30 pthread_cond_t cond; member
61 if (pthread_cond_signal (&t->cond) != 0) in tf()
67 if (pthread_cond_wait (&t->cond, &t->lock) != 0) in tf()
101 || pthread_cond_init (&t[i]->cond, NULL) != 0) in do_test()
122 if (pthread_cond_wait (&t[i]->cond, &t[i]->lock) != 0) in do_test()
A Dtst-cond6.c45 pthread_cond_t *cond; in do_test() local
81 cond = (pthread_cond_t *) (((uintptr_t) (mut2 + 1) in do_test()
85 condition = (int *) (((uintptr_t) (cond + 1) + __alignof (int)) in do_test()
124 if (pthread_cond_init (cond, &ca) != 0) in do_test()
175 if (pthread_cond_timedwait (cond, mut2, &ts) != 0) in do_test()
206 if (pthread_cond_signal (cond) != 0) in do_test()
/sysdeps/unix/sysv/linux/
A Dcnd_timedwait.c24 __cnd_timedwait64 (cnd_t *restrict cond, mtx_t *restrict mutex, in __cnd_timedwait64() argument
27 int err_code = __pthread_cond_timedwait64 ((pthread_cond_t *) cond, in __cnd_timedwait64()
39 ___cnd_timedwait (cnd_t *restrict cond, mtx_t *restrict mutex,
44 return __cnd_timedwait64(cond, mutex, &ts64);
/sysdeps/ia64/
A Dstrchr.S60 (p6) br.cond.sptk .str_aligned;;
68 (p6) br.cond.spnt .restore_and_exit
69 (p7) br.cond.spnt .notfound
84 (p7) br.cond.spnt .foundit
85 (p6) br.cond.spnt .notfound
89 br.cond.dptk .l2
92 (p8) br.cond.spnt .notfound // null was found before chr
106 br.cond.sptk .back
A Dstrncpy.S67 (p6) br.cond.spnt .short_len
84 (p7) br.cond.dpnt .found0_align
121 br.cond.sptk .not_found0 ;;
124 (p6) br.cond.dptk .found0
126 br.cond.sptk .not_found0 ;;
138 (p7) br.cond.dpnt .found0
157 br.cond.sptk .restore_and_exit
177 (p6) br.cond.dpnt .l6 ;;
217 br.cond.sptk .back2
221 br.cond.sptk .back3
[all …]
/sysdeps/unix/sysv/linux/ia64/
A D____longjmp_chk.S46 (p8) br.cond.dptk.many .Lok; \
57 (p8) br.cond.spnt .Lok; \
69 (p8) br.cond.spnt .Lfail; \
72 (p7) br.cond.spnt .Lfail; \
75 (p8) br.cond.sptk.many .Lok; \

Completed in 25 milliseconds

12345678