Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 237) sorted by relevance

12345678910

/glibc-2.36/htl/
Dpt-internal.h65 pthread_t thread; member
124 __pthread_enqueue (struct __pthread **head, struct __pthread *thread) in __pthread_enqueue() argument
126 assert (thread->prevp == 0); in __pthread_enqueue()
128 thread->next = *head; in __pthread_enqueue()
129 thread->prevp = head; in __pthread_enqueue()
131 (*head)->prevp = &thread->next; in __pthread_enqueue()
132 *head = thread; in __pthread_enqueue()
137 __pthread_dequeue (struct __pthread *thread) in __pthread_dequeue() argument
139 assert (thread); in __pthread_dequeue()
140 assert (thread->prevp); in __pthread_dequeue()
[all …]
Dpt-join.c28 __pthread_join_common (pthread_t thread, void **status, int try, in __pthread_join_common() argument
36 pthread = __pthread_getid (thread); in __pthread_join_common()
89 __pthread_join (pthread_t thread, void **status) in __pthread_join() argument
91 return __pthread_join_common (thread, status, 0, CLOCK_REALTIME, NULL); in __pthread_join()
96 __pthread_tryjoin_np (pthread_t thread, void **status) in __pthread_tryjoin_np() argument
98 return __pthread_join_common (thread, status, 1, CLOCK_REALTIME, NULL); in __pthread_tryjoin_np()
103 __pthread_timedjoin_np (pthread_t thread, void **status, in __pthread_timedjoin_np() argument
106 return __pthread_join_common (thread, status, 0, CLOCK_REALTIME, abstime); in __pthread_timedjoin_np()
111 __pthread_clockjoin_np (pthread_t thread, void **status, in __pthread_clockjoin_np() argument
115 return __pthread_join_common (thread, status, 0, clockid, abstime); in __pthread_clockjoin_np()
/glibc-2.36/malloc/
DMakefile31 tst-malloc-backtrace tst-malloc-thread-exit \
32 tst-malloc-thread-fail tst-malloc-fork-deadlock \
36 tst-interpose-thread \
49 tst-interpose-static-thread
88 tst-interpose-thread \
90 tst-interpose-static-thread \
115 tst-malloc-thread-exit \
116 tst-malloc-thread-fail \
150 tst-interpose-aux-thread.o \
154 tst-interpose-aux-thread \
[all …]
/glibc-2.36/sysdeps/htl/
Dtimer_routines.c142 thread_init (struct thread_node *thread, const pthread_attr_t *attr, clockid_t clock_id) in thread_init() argument
145 thread->attr = *attr; in thread_init()
148 pthread_attr_init (&thread->attr); in thread_init()
149 pthread_attr_setdetachstate (&thread->attr, PTHREAD_CREATE_DETACHED); in thread_init()
152 thread->exists = 0; in thread_init()
153 INIT_LIST_HEAD (&thread->timer_queue); in thread_init()
154 pthread_cond_init (&thread->cond, 0); in thread_init()
155 thread->current_timer = 0; in thread_init()
156 thread->captured = pthread_self (); in thread_init()
157 thread->clock_id = clock_id; in thread_init()
[all …]
Dpt-destroy-specific.c25 __pthread_destroy_specific (struct __pthread *thread) in __pthread_destroy_specific() argument
31 if (thread->thread_specifics == NULL) in __pthread_destroy_specific()
43 for (i = 0; i < __pthread_key_count && i < thread->thread_specifics_size; in __pthread_destroy_specific()
51 value = thread->thread_specifics[i]; in __pthread_destroy_specific()
54 thread->thread_specifics[i] = 0; in __pthread_destroy_specific()
74 free (thread->thread_specifics); in __pthread_destroy_specific()
75 thread->thread_specifics = 0; in __pthread_destroy_specific()
76 thread->thread_specifics_size = 0; in __pthread_destroy_specific()
DMakeconfig4 have-thread-library = yes
6 shared-thread-library = $(common-objpfx)htl/libpthread.so
7 static-thread-library = $(..)htl/libpthread_syms.a $(common-objpfx)htl/libpthread.a $(common-objpfx…
8 bounded-thread-library = $(static-thread-library)
13 librt = $(common-objpfx)rt/librt.a $(static-thread-library)
/glibc-2.36/sysdeps/mach/hurd/i386/htl/
Dpt-setup.c40 stack_setup (struct __pthread *thread, in stack_setup() argument
47 bottom = thread->stackaddr; in stack_setup()
48 top = (uintptr_t *) ((uintptr_t) bottom + thread->stacksize in stack_setup()
49 + ((thread->guardsize + __vm_page_size - 1) in stack_setup()
59 top[0] = (uintptr_t) thread; in stack_setup()
63 if (thread->guardsize) in stack_setup()
66 thread->guardsize, 0, 0); in stack_setup()
74 __pthread_setup (struct __pthread *thread, in __pthread_setup() argument
83 thread->mcontext.pc = entry_point; in __pthread_setup()
84 thread->mcontext.sp = stack_setup (thread, start_routine, arg); in __pthread_setup()
[all …]
/glibc-2.36/sysdeps/mach/htl/
Dpt-thread-alloc.c29 create_wakeupmsg (struct __pthread *thread) in create_wakeupmsg() argument
34 thread->wakeupmsg.msgh_bits = MACH_MSGH_BITS (MACH_MSG_TYPE_COPY_SEND, 0); in create_wakeupmsg()
35 thread->wakeupmsg.msgh_size = 0; in create_wakeupmsg()
38 &thread->wakeupmsg.msgh_remote_port); in create_wakeupmsg()
42 thread->wakeupmsg.msgh_local_port = MACH_PORT_NULL; in create_wakeupmsg()
43 thread->wakeupmsg.msgh_seqno = 0; in create_wakeupmsg()
44 thread->wakeupmsg.msgh_id = 0; in create_wakeupmsg()
47 thread->wakeupmsg.msgh_remote_port, in create_wakeupmsg()
48 thread->wakeupmsg.msgh_remote_port, in create_wakeupmsg()
53 thread->wakeupmsg.msgh_remote_port); in create_wakeupmsg()
[all …]
Dpt-thread-terminate.c31 __pthread_thread_terminate (struct __pthread *thread) in __pthread_thread_terminate() argument
40 kernel_thread = thread->kernel_thread; in __pthread_thread_terminate()
42 if (thread->stack) in __pthread_thread_terminate()
44 stackaddr = thread->stackaddr; in __pthread_thread_terminate()
45 stacksize = ((thread->guardsize + __vm_page_size - 1) in __pthread_thread_terminate()
46 / __vm_page_size) * __vm_page_size + thread->stacksize; in __pthread_thread_terminate()
54 wakeup_port = thread->wakeupmsg.msgh_remote_port; in __pthread_thread_terminate()
61 thread->kernel_thread = MACH_PORT_DEAD; in __pthread_thread_terminate()
64 __pthread_dealloc (thread); in __pthread_thread_terminate()
80 __pthread_dealloc_finish (thread); in __pthread_thread_terminate()
/glibc-2.36/hurd/hurd/
Duserlink.h67 } resource, thread; member
105 link->thread.next = *thread_chainp; in _hurd_userlink_link()
106 if (link->thread.next) in _hurd_userlink_link()
107 link->thread.next->thread.prevp = &link->thread.next; in _hurd_userlink_link()
108 link->thread.prevp = thread_chainp; in _hurd_userlink_link()
141 *link->thread.prevp = link->thread.next; in _hurd_userlink_unlink()
142 if (link->thread.next) in _hurd_userlink_unlink()
143 link->thread.next->thread.prevp = link->thread.prevp; in _hurd_userlink_unlink()
171 if (new_link->thread.next != NULL) in _hurd_userlink_move()
172 new_link->thread.next->thread.prevp = &new_link->thread.next; in _hurd_userlink_move()
[all …]
/glibc-2.36/rt/
Dtimer_create.c33 struct thread_node *thread = NULL; in timer_create() local
92 thread = &__timer_signal_thread_rclk; in timer_create()
93 if (! thread->exists) in timer_create()
95 if (__builtin_expect (__timer_thread_start (thread), in timer_create()
115 thread = __timer_thread_find_matching (&newtimer->attr, clock_id); in timer_create()
118 if (thread == NULL) in timer_create()
119 thread = __timer_thread_alloc (&newtimer->attr, clock_id); in timer_create()
122 if (__glibc_unlikely (thread == NULL)) in timer_create()
129 if (! thread->exists in timer_create()
130 && __builtin_expect (! __timer_thread_start (thread), 0)) in timer_create()
[all …]
Dtimer_delete.c41 if (timer->armed && timer->thread != NULL) in timer_delete()
43 struct thread_node *thread = timer->thread; in timer_delete() local
44 assert (thread != NULL); in timer_delete()
51 while (thread->current_timer == timer) in timer_delete()
52 pthread_cond_wait (&thread->cond, &__timer_mutex); in timer_delete()
Dtimer_settime.c31 struct thread_node *thread = NULL; in timer_settime() local
100 thread = timer->thread; in timer_settime()
114 if (thread != NULL) in timer_settime()
115 need_wakeup = __timer_thread_queue_timer (thread, timer); in timer_settime()
126 if (thread != NULL && need_wakeup) in timer_settime()
127 __timer_thread_wakeup (thread); in timer_settime()
/glibc-2.36/resolv/
DMakefile81 ifeq ($(have-thread-library),yes)
119 tst-resolv-res_init-thread \
169 ifeq ($(have-GLIBC_2.34)$(have-thread-library),yesyes)
223 $(objpfx)libanl.so: $(shared-thread-library)
225 $(objpfx)tst-res_hconf_reorder: $(shared-thread-library)
250 $(objpfx)tst-bug18665-tcp: $(objpfx)libresolv.so $(shared-thread-library)
251 $(objpfx)tst-bug18665: $(objpfx)libresolv.so $(shared-thread-library)
252 $(objpfx)tst-resolv-ai_idn: $(objpfx)libresolv.so $(shared-thread-library)
254 $(objpfx)libresolv.so $(shared-thread-library)
256 $(objpfx)libresolv.so $(shared-thread-library)
[all …]
DREADME9 the parts needed to provide thread-safety. This means that support
33 state first. Note that the thread-safe `res_nclose' still doesn't
48 interfaces are not thread-safe. Therefore, BIND 8.2 introduced a set
51 argument, so you can use a per-thread resolver state. In glibc, when
52 you link with -lpthread, such a per-thread resolver state is already
55 `h_errno' variables. This per-thread resolver state is also used for
57 `gethostbyname_r' is now fully thread-safe and re-entrant. The
59 resolver state and are therefore still thread-unsafe. The resolver
61 thread.
70 in the "main" thread should continue to work, except that they no
[all …]
/glibc-2.36/nptl/
Dpthread_getattr_np.c34 struct pthread *thread = (struct pthread *) thread_id; in __pthread_getattr_np() local
43 lll_lock (thread->lock, LLL_PRIVATE); in __pthread_getattr_np()
47 memcpy (&iattr->schedparam, &thread->schedparam, in __pthread_getattr_np()
49 iattr->schedpolicy = thread->schedpolicy; in __pthread_getattr_np()
52 iattr->flags = thread->flags; in __pthread_getattr_np()
55 if (IS_DETACHED (thread)) in __pthread_getattr_np()
59 iattr->guardsize = thread->reported_guardsize; in __pthread_getattr_np()
62 if (__glibc_likely (thread->stackblock != NULL)) in __pthread_getattr_np()
66 iattr->stacksize = thread->stackblock_size - thread->guardsize; in __pthread_getattr_np()
68 iattr->stackaddr = (char *) thread->stackblock in __pthread_getattr_np()
[all …]
/glibc-2.36/hurd/
Dhurdsig.c77 _hurd_thread_sigstate (thread_t thread) in _hurd_thread_sigstate() argument
82 if (ss->thread == thread) in _hurd_thread_sigstate()
91 ss->thread = thread; in _hurd_thread_sigstate()
106 if (thread == MACH_PORT_NULL) in _hurd_thread_sigstate()
133 err = __mach_port_mod_refs (__mach_task_self (), thread, in _hurd_thread_sigstate()
147 _hurd_sigstate_delete (thread_t thread) in libc_hidden_def()
153 if ((*ssp)->thread == thread) in libc_hidden_def()
163 if (ss->thread != MACH_PORT_NULL) in libc_hidden_def()
164 __mach_port_deallocate (__mach_task_self (), ss->thread); in libc_hidden_def()
174 assert (ss->thread != MACH_PORT_NULL); in _hurd_sigstate_set_global_rcv()
[all …]
Dsigunwind.c87 link = link->thread.next) in _hurdsig_longjmp_from_handler()
122 assert (link->thread.next == ss->active_resources); in _hurdsig_longjmp_from_handler()
123 assert (link->thread.prevp == &ss->active_resources); in _hurdsig_longjmp_from_handler()
124 if (link->thread.next) in _hurdsig_longjmp_from_handler()
125 link->thread.next->thread.prevp = &link->thread.next; in _hurdsig_longjmp_from_handler()
/glibc-2.36/manual/
Dthreads.texi35 * ISO C Condition Variables:: High-level objects for thread synchronization.
36 * ISO C Thread-local Storage:: Functions to support thread-local storage.
43 The ISO C thread specification provides the following enumeration
74 @cindex thread creation
75 @cindex thread control
76 @cindex thread management
86 A unique object that identifies a thread.
92 @code{thrd_create} when creating a new thread. It should point to the
93 first function that thread will run.
101 @code{thrd_create} creates a new thread that will execute the function
[all …]
/glibc-2.36/scripts/
Dtest_printers_common.py221 def break_at(file_name, string, temporary=True, thread=None): argument
252 if not thread:
255 thread_str = 'thread {0}'.format(thread)
271 def continue_cmd(thread=None): argument
282 if not thread:
285 command = 'thread apply {0} continue'.format(thread)
289 def next_cmd(count=1, thread=None): argument
301 if not thread:
308 def select_thread(thread): argument
316 if thread > 0:
[all …]
/glibc-2.36/sysdeps/mach/hurd/
D_Fork.c80 thread_t thread, sigthread; in _Fork() local
100 if (threads[i] != ss->thread) in _Fork()
125 thread = sigthread = MACH_PORT_NULL; in _Fork()
141 err = __proc_dostop (_hurd_ports[INIT_PORT_PROC].port, ss->thread); in _Fork()
316 else if (portnames[i] == ss->thread) in _Fork()
430 if ((err = __thread_create (newtask, &thread)) in _Fork()
438 if ((err = __mach_port_deallocate (newtask, ss->thread)) in _Fork()
439 || (err = __mach_port_insert_right (newtask, ss->thread, in _Fork()
440 thread, in _Fork()
445 && (err = __mach_port_mod_refs (newtask, ss->thread, in _Fork()
[all …]
Dptrace.c56 error_t fetch_user_thread (task_t task, thread_t *thread) in ptrace()
65 *thread = threads[0]; /* Assume user thread is first. */ in ptrace()
79 thread_t thread; in ptrace() local
82 err = fetch_user_thread (task, &thread); in ptrace()
85 err = __thread_get_state (thread, flavor, addr, &count); in ptrace()
86 __mach_port_deallocate (__mach_task_self (), thread); in ptrace()
119 thread_t thread; in ptrace() local
120 err = fetch_user_thread (task, &thread); in ptrace()
125 err = __thread_get_state (thread, in ptrace()
131 err = __thread_set_state (thread, in ptrace()
[all …]
/glibc-2.36/stdlib/
DMakefile188 tst-arc4random-thread \
240 tst-thread-quick_exit \
271 LDLIBS-test-atexit-race = $(shared-thread-library)
272 LDLIBS-test-at_quick_exit-race = $(shared-thread-library)
273 LDLIBS-test-cxa_atexit-race = $(shared-thread-library)
274 LDLIBS-test-cxa_atexit-race2 = $(shared-thread-library)
275 LDLIBS-test-on_exit-race = $(shared-thread-library)
276 LDLIBS-tst-canon-bz26341 = $(shared-thread-library)
277 LDLIBS-tst-arc4random-fork = $(shared-thread-library)
278 LDLIBS-tst-arc4random-thread = $(shared-thread-library)
[all …]
/glibc-2.36/sysdeps/mach/hurd/htl/
Dpt-sysdep.h38 struct __pthread *thread; \
41 thread = ___pthread_self; \
43 assert (thread); \
45 int ok = thread->kernel_thread == ktid; \
48 thread; \
64 extern int __thread_set_pcsptp (thread_t thread,
Dpt-sysdep.c44 struct __pthread *thread; in _init_routine() local
66 err = __pthread_create_internal (&thread, attrp, 0, 0); in _init_routine()
72 thread->stack = 0; in _init_routine()
73 thread->tcb = THREAD_SELF; in _init_routine()
79 ___pthread_self = thread; in _init_routine()
91 __mig_init (thread->stackaddr); in _init_routine()

12345678910