/sysdeps/mach/htl/ |
A D | pt-thread-alloc.c | 29 create_wakeupmsg (struct __pthread *thread) in create_wakeupmsg() argument 35 thread->wakeupmsg.msgh_size = 0; in create_wakeupmsg() 38 &thread->wakeupmsg.msgh_remote_port); 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() 59 thread->wakeupmsg.msgh_remote_port, 1); in create_wakeupmsg() 72 err = create_wakeupmsg (thread); in __pthread_thread_alloc() [all …]
|
A D | pt-thread-terminate.c | 31 __pthread_thread_terminate (struct __pthread *thread) in __pthread_thread_terminate() argument 39 kernel_thread = thread->kernel_thread; in __pthread_thread_terminate() 41 if (thread->stack) in __pthread_thread_terminate() 43 stackaddr = thread->stackaddr; in __pthread_thread_terminate() 44 stacksize = ((thread->guardsize + __vm_page_size - 1) in __pthread_thread_terminate() 45 / __vm_page_size) * __vm_page_size + thread->stacksize; in __pthread_thread_terminate() 53 wakeup_port = thread->wakeupmsg.msgh_remote_port; in __pthread_thread_terminate() 66 __pthread_dealloc (thread); in __pthread_thread_terminate()
|
A D | pt-thread-start.c | 27 __pthread_thread_start (struct __pthread *thread) in __pthread_thread_start() argument 39 int ok = thread->kernel_thread == ktid; in __pthread_thread_start() 41 thread->kernel_thread); in __pthread_thread_start() 48 err = __thread_resume (thread->kernel_thread); in __pthread_thread_start()
|
A D | pt-wakeup.c | 29 __pthread_wakeup (struct __pthread *thread) in __pthread_wakeup() argument 33 err = __mach_msg (&thread->wakeupmsg, MACH_SEND_MSG | MACH_SEND_TIMEOUT, in __pthread_wakeup() 34 sizeof (thread->wakeupmsg), 0, MACH_PORT_NULL, in __pthread_wakeup()
|
A D | pt-block.c | 41 __pthread_block (struct __pthread *thread) in __pthread_block() argument 47 thread->wakeupmsg.msgh_remote_port, in __pthread_block()
|
/sysdeps/mach/hurd/i386/htl/ |
A D | pt-setup.c | 47 bottom = thread->stackaddr; 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() 83 thread->mcontext.pc = entry_point; in __pthread_setup() 84 thread->mcontext.sp = stack_setup (thread, start_routine, arg); in __pthread_setup() 87 if (thread->kernel_thread == ktid) in __pthread_setup() 99 1, thread->mcontext.pc, in __pthread_setup() 100 1, thread->mcontext.sp, in __pthread_setup() 101 1, thread->tcb); in __pthread_setup() [all …]
|
A D | pt-machdep.c | 41 __thread_set_pcsptp (thread_t thread, in __thread_set_pcsptp() argument 52 err = __thread_get_state (thread, i386_REGS_SEGS_STATE, in __thread_set_pcsptp() 68 err = __i386_set_ldt (thread, sel, &desc, 1); in __thread_set_pcsptp() 70 err = __i386_set_gdt (thread, &sel, desc); in __thread_set_pcsptp() 76 err = __thread_set_state (thread, i386_REGS_SEGS_STATE, in __thread_set_pcsptp()
|
/sysdeps/htl/ |
A D | pt-destroy-specific.c | 25 __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()
|
A D | timer_routines.c | 145 thread->attr = *attr; in thread_init() 152 thread->exists = 0; in thread_init() 155 thread->current_timer = 0; in thread_init() 157 thread->clock_id = clock_id; in thread_init() 232 return thread; in __timer_thread_alloc() 244 thread_deinit (thread); in __timer_thread_dealloc() 270 thread->exists = 0; in thread_cleanup() 467 assert (!thread->exists); in __timer_thread_start() 468 thread->exists = 1; in __timer_thread_start() 473 if (pthread_create (&thread->id, &thread->attr, in __timer_thread_start() [all …]
|
A D | pt-init-specific.c | 25 __pthread_init_specific (struct __pthread *thread) in __pthread_init_specific() argument 27 thread->thread_specifics = 0; in __pthread_init_specific() 28 thread->thread_specifics_size = 0; in __pthread_init_specific()
|
A D | Makeconfig | 4 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)
|
/sysdeps/mach/hurd/htl/ |
A D | pt-sysdep.h | 38 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,
|
A D | pt-sysdep.c | 44 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()
|
A D | pt-sigstate-destroy.c | 25 __pthread_sigstate_destroy (struct __pthread *thread) in __pthread_sigstate_destroy() argument 27 _hurd_sigstate_delete (thread->kernel_thread); in __pthread_sigstate_destroy()
|
A D | pt-sigstate-init.c | 24 __pthread_sigstate_init (struct __pthread *thread) in __pthread_sigstate_init() argument 37 struct hurd_sigstate *ss = _hurd_thread_sigstate (thread->kernel_thread); in __pthread_sigstate_init()
|
A D | pt-mutex.h | 30 else if (mtxp->__owner_id == self->thread \ 52 mtxp->__owner_id = self->thread; \ 66 ((mtx)->__owner_id == (pt)->thread \ 74 (mtx)->__owner_id = (pt)->thread; \
|
/sysdeps/mach/ |
A D | thread_state.h | 54 machine_get_state (thread_t thread, struct machine_thread_all_state *state, in machine_get_state() argument 68 return (! __thread_get_state (thread, flavor, scpptr, &got) in machine_get_state() 74 machine_get_basic_state (thread_t thread, in machine_get_basic_state() argument 83 if (__thread_get_state (thread, MACHINE_THREAD_STATE_FLAVOR, in machine_get_basic_state()
|
/sysdeps/pthread/ |
A D | tst-cond-except.c | 82 pthread_t thread; in do_test() local 85 ret = pthread_create (&thread, 0, thr, &thr_ret); in do_test() 92 ret = pthread_cancel (thread); in do_test() 96 ret = pthread_join (thread, NULL); in do_test()
|
A D | tst-join5.c | 44 thread_join (pthread_t thread, void **retval) in thread_join() argument 49 return pthread_timedjoin_np (thread, retval, &ts); in thread_join() 53 return pthread_clockjoin_np (thread, retval, CLOCK_REALTIME, &ts); in thread_join() 57 return pthread_clockjoin_np (thread, retval, CLOCK_MONOTONIC, &ts); in thread_join() 59 return pthread_join (thread, retval); in thread_join()
|
A D | posix-timer.h | 57 struct thread_node *thread; member 183 extern int __timer_thread_start (struct thread_node *thread); 186 extern void __timer_thread_dealloc (struct thread_node *thread); 187 extern int __timer_thread_queue_timer (struct thread_node *thread, 189 extern void __timer_thread_wakeup (struct thread_node *thread);
|
A D | tst-setuid3.c | 89 pthread_t thread; in do_test() local 90 ret = pthread_create (&thread, NULL, thread_func, NULL); in do_test() 110 ret = pthread_join (thread, NULL); in do_test()
|
/sysdeps/mach/hurd/ |
A D | _Fork.c | 80 thread_t thread, sigthread; in _Fork() local 100 if (threads[i] != ss->thread) in _Fork() 125 thread = sigthread = MACH_PORT_NULL; in _Fork() 316 else if (portnames[i] == ss->thread) in _Fork() 430 if ((err = __thread_create (newtask, &thread)) in _Fork() 440 thread, in _Fork() 522 if (err = _hurd_tls_fork (thread, ss->thread, &state)) in _Fork() 549 (void) __thread_resume (thread); in _Fork() 564 if (thread != MACH_PORT_NULL) in _Fork() 565 __mach_port_deallocate (__mach_task_self (), thread); in _Fork() [all …]
|
A D | ptrace.c | 56 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 …]
|
/sysdeps/hurd/htl/ |
A D | pt-kill.c | 27 __pthread_kill (pthread_t thread, int sig) in __pthread_kill() argument 34 pthread = __pthread_getid (thread); in __pthread_kill()
|
/sysdeps/mach/hurd/i386/ |
A D | trampoline.c | 141 if (! machine_get_basic_state (ss->thread, state)) in _hurd_setup_sighandler() 203 stackframe->link.thread.next = ss->active_resources; in _hurd_setup_sighandler() 204 stackframe->link.thread.prevp = &ss->active_resources; in _hurd_setup_sighandler() 205 if (stackframe->link.thread.next) in _hurd_setup_sighandler() 206 stackframe->link.thread.next->thread.prevp in _hurd_setup_sighandler() 207 = &stackframe->link.thread.next; in _hurd_setup_sighandler() 222 ok = machine_get_state (ss->thread, state, i386_FLOAT_STATE, in _hurd_setup_sighandler()
|