Home
last modified time | relevance | path

Searched refs:pd (Results 1 – 25 of 31) sorted by relevance

12

/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/
A Dpthread_create.c70 if (curp == pd) in __find_in_stack_list()
83 if (curp == pd) in __find_in_stack_list()
211 pd->tpp = NULL; in __free_tcb()
293 THREAD_SETMEM (pd, result, CALL_THREAD_FCT (pd)); in start_thread()
295 THREAD_SETMEM (pd, result, pd->start_routine (pd->arg)); in start_thread()
328 pd->eventbuf.eventdata = pd; in start_thread()
333 pd, pd->nextevent)); in start_thread()
459 pd->header.self = pd; in __pthread_create_2_1()
462 pd->header.tcb = pd; in __pthread_create_2_1()
469 pd->arg = arg; in __pthread_create_2_1()
[all …]
A Dpthread_getschedparam.c35 if (INVALID_TD_P (pd)) in __pthread_getschedparam()
41 lll_lock (pd->lock, LLL_PRIVATE); in __pthread_getschedparam()
48 if ((pd->flags & ATTR_FLAG_SCHED_SET) == 0) in __pthread_getschedparam()
50 if (sched_getparam (pd->tid, &pd->schedparam) != 0) in __pthread_getschedparam()
53 pd->flags |= ATTR_FLAG_SCHED_SET; in __pthread_getschedparam()
56 if ((pd->flags & ATTR_FLAG_POLICY_SET) == 0) in __pthread_getschedparam()
58 pd->schedpolicy = sched_getscheduler (pd->tid); in __pthread_getschedparam()
59 if (pd->schedpolicy == -1) in __pthread_getschedparam()
62 pd->flags |= ATTR_FLAG_POLICY_SET; in __pthread_getschedparam()
67 *policy = pd->schedpolicy; in __pthread_getschedparam()
[all …]
A Dallocatestack.c94 # define TLS_TPADJ(pd) (pd) argument
315 + (((((pd->stackblock_size - pd->guardsize) / 2) in change_stack_perm()
317 size_t len = pd->stackblock + pd->stackblock_size - stack; in change_stack_perm()
319 void *stack = pd->stackblock + pd->guardsize; in change_stack_perm()
320 size_t len = pd->stackblock_size - pd->guardsize; in change_stack_perm()
323 size_t len = (uintptr_t) pd - pd->guardsize - (uintptr_t) pd->stackblock; in change_stack_perm()
390 pd->specific[0] = pd->specific_1stblock; in allocate_stack()
536 pd->specific[0] = pd->specific_1stblock; in allocate_stack()
673 pd->robust_prev = &pd->robust_head; in allocate_stack()
675 pd->robust_head.list = &pd->robust_head; in allocate_stack()
[all …]
A Dpthread_join.c42 struct pthread *pd = (struct pthread *) threadid; in pthread_join() local
45 if (INVALID_NOT_TERMINATED_TD_P (pd)) in pthread_join()
50 if (IS_DETACHED (pd)) in pthread_join()
60 pthread_cleanup_push (cleanup, &pd->joinid); in pthread_join()
65 if ((pd == self in pthread_join()
66 || (self->joinid == pd in pthread_join()
67 && (pd->cancelhandling in pthread_join()
88 lll_wait_tid (pd->tid); in pthread_join()
101 pd->tid = -1; in pthread_join()
105 *thread_return = pd->result; in pthread_join()
[all …]
A Dpthread_timedjoin.c39 struct pthread *pd = (struct pthread *) threadid; in pthread_timedjoin_np() local
43 if (INVALID_NOT_TERMINATED_TD_P (pd)) in pthread_timedjoin_np()
48 if (IS_DETACHED (pd)) in pthread_timedjoin_np()
53 if (pd == self || self->joinid == pd) in pthread_timedjoin_np()
65 if (__builtin_expect (atomic_compare_and_exchange_bool_acq (&pd->joinid, in pthread_timedjoin_np()
74 pthread_cleanup_push (cleanup, &pd->joinid); in pthread_timedjoin_np()
81 result = lll_timedwait_tid (pd->tid, abstime); in pthread_timedjoin_np()
96 *thread_return = pd->result; in pthread_timedjoin_np()
100 __free_tcb (pd); in pthread_timedjoin_np()
103 pd->joinid = NULL; in pthread_timedjoin_np()
A Dpthread_setschedparam.c33 struct pthread *pd = (struct pthread *) threadid; in __pthread_setschedparam() local
36 if (INVALID_TD_P (pd)) in __pthread_setschedparam()
42 lll_lock (pd->lock, LLL_PRIVATE); in __pthread_setschedparam()
49 if (__builtin_expect (pd->tpp != NULL, 0) in __pthread_setschedparam()
50 && pd->tpp->priomax > param->sched_priority) in __pthread_setschedparam()
53 p.sched_priority = pd->tpp->priomax; in __pthread_setschedparam()
58 if (__builtin_expect (__sched_setscheduler (pd->tid, policy, in __pthread_setschedparam()
65 pd->schedpolicy = policy; in __pthread_setschedparam()
66 memcpy (&pd->schedparam, orig_param, sizeof (struct sched_param)); in __pthread_setschedparam()
67 pd->flags |= ATTR_FLAG_SCHED_SET | ATTR_FLAG_POLICY_SET; in __pthread_setschedparam()
[all …]
A Dpthread_setschedprio.c32 struct pthread *pd = (struct pthread *) threadid; in pthread_setschedprio() local
35 if (INVALID_TD_P (pd)) in pthread_setschedprio()
43 lll_lock (pd->lock, LLL_PRIVATE); in pthread_setschedprio()
47 if (__builtin_expect (pd->tpp != NULL, 0) && pd->tpp->priomax > prio) in pthread_setschedprio()
48 param.sched_priority = pd->tpp->priomax; in pthread_setschedprio()
51 if (__builtin_expect (sched_setparam (pd->tid, &param) == -1, 0)) in pthread_setschedprio()
58 memcpy (&pd->schedparam, &param, sizeof (struct sched_param)); in pthread_setschedprio()
59 pd->flags |= ATTR_FLAG_SCHED_SET; in pthread_setschedprio()
62 lll_unlock (pd->lock, LLL_PRIVATE); in pthread_setschedprio()
A Dpthread_tryjoin.c32 struct pthread *pd = (struct pthread *) threadid; in pthread_tryjoin_np() local
35 if (DEBUGGING_P && __find_in_stack_list (pd) == NULL) in pthread_tryjoin_np()
40 if (IS_DETACHED (pd)) in pthread_tryjoin_np()
45 if (pd == self || self->joinid == pd) in pthread_tryjoin_np()
56 if (pd->tid != 0) in pthread_tryjoin_np()
61 if (atomic_compare_and_exchange_bool_acq (&pd->joinid, self, NULL)) in pthread_tryjoin_np()
67 *thread_return = pd->result; in pthread_tryjoin_np()
71 __free_tcb (pd); in pthread_tryjoin_np()
A Dpthread_detach.c27 struct pthread *pd = (struct pthread *) th; in pthread_detach() local
30 if (INVALID_NOT_TERMINATED_TD_P (pd)) in pthread_detach()
37 if (atomic_compare_and_exchange_bool_acq (&pd->joinid, pd, NULL)) in pthread_detach()
43 if (IS_DETACHED (pd)) in pthread_detach()
49 if ((pd->cancelhandling & EXITING_BITMASK) != 0) in pthread_detach()
52 __free_tcb (pd); in pthread_detach()
A Dinit.c281 struct pthread *pd = THREAD_SELF; in __pthread_initialize_minimal_internal() local
283 pd->pid = pd->tid = INTERNAL_SYSCALL (set_tid_address, err, 1, &pd->tid); in __pthread_initialize_minimal_internal()
284 THREAD_SETMEM (pd, specific[0], &pd->specific_1stblock[0]); in __pthread_initialize_minimal_internal()
285 THREAD_SETMEM (pd, user_stack, true); in __pthread_initialize_minimal_internal()
287 THREAD_SETMEM (pd, lock, LLL_LOCK_INITIALIZER); in __pthread_initialize_minimal_internal()
289 THREAD_SETMEM (pd, cpuclock_offset, GL(dl_cpuclock_offset)); in __pthread_initialize_minimal_internal()
294 pd->robust_prev = &pd->robust_head; in __pthread_initialize_minimal_internal()
296 pd->robust_head.list = &pd->robust_head; in __pthread_initialize_minimal_internal()
322 if (THREAD_GETMEM (pd, header.private_futex) != 0) in __pthread_initialize_minimal_internal()
344 THREAD_SETMEM (pd, stackblock_size, (size_t) __libc_stack_end); in __pthread_initialize_minimal_internal()
[all …]
A Dpthread_cancel.c31 volatile struct pthread *pd = (volatile struct pthread *) th; in pthread_cancel() local
34 if (INVALID_TD_P (pd)) in pthread_cancel()
47 oldval = pd->cancelhandling; in pthread_cancel()
62 if (atomic_compare_and_exchange_bool_acq (&pd->cancelhandling, in pthread_cancel()
80 THREAD_GETMEM (THREAD_SELF, pid), pd->tid, in pthread_cancel()
85 THREAD_GETMEM (THREAD_SELF, pid), pd->tid, in pthread_cancel()
90 val = INTERNAL_SYSCALL (tkill, err, 2, pd->tid, SIGCANCEL); in pthread_cancel()
101 while (atomic_compare_and_exchange_bool_acq (&pd->cancelhandling, newval, in pthread_cancel()
A DpthreadP.h208 # define INVALID_TD_P(pd) (DEBUGGING_P && __find_in_stack_list (pd) == NULL)
209 # define INVALID_NOT_TERMINATED_TD_P(pd) INVALID_TD_P (pd)
215 # define INVALID_TD_P(pd) __builtin_expect ((pd)->tid <= 0, 0) argument
216 # define INVALID_NOT_TERMINATED_TD_P(pd) __builtin_expect ((pd)->tid < 0, 0) argument
334 extern struct pthread *__find_in_stack_list (struct pthread *pd)
339 extern void __free_tcb (struct pthread *pd) attribute_hidden internal_function;
342 extern void __deallocate_stack (struct pthread *pd)
A Ddescr.h329 #define IS_DETACHED(pd) ((pd)->joinid == (pd)) argument
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/pthread/
A Dcreatethread.c35 # define TLS_VALUE pd
75 pd, &pd->tid, TLS_VALUE, &pd->tid) == -1) in do_clone()
83 if (IS_DETACHED (pd)) in do_clone()
84 __deallocate_stack (pd); in do_clone()
111 pd->tid, SIGCANCEL); in do_clone()
126 pd->schedpolicy, &pd->schedparam); in do_clone()
147 assert (pd->header.tcb != NULL); in create_thread()
200 pd->stopped_start = true; in create_thread()
213 pd->eventbuf.eventdata = pd; in create_thread()
219 pd, pd->nextevent) in create_thread()
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/
A Dpthread_getcpuclockid.c29 struct pthread *pd = (struct pthread *) threadid; in pthread_getcpuclockid() local
32 if (INVALID_TD_P (pd)) in pthread_getcpuclockid()
45 if (pd->tid >= 1 << (8 * sizeof (*clockid) - CLOCK_IDFIELD_SIZE)) in pthread_getcpuclockid()
49 *clockid = CLOCK_THREAD_CPUTIME_ID | (pd->tid << CLOCK_IDFIELD_SIZE); in pthread_getcpuclockid()
A Draise.c31 struct pthread *pd = THREAD_SELF; in raise() local
33 pid_t pid = THREAD_GETMEM (pd, pid); in raise()
35 pid_t selftid = THREAD_GETMEM (pd, tid); in raise()
45 THREAD_SETMEM (pd, tid, selftid); in raise()
A Dpthread_sigqueue.c36 struct pthread *pd = (struct pthread *) threadid; in pthread_sigqueue() local
39 if (DEBUGGING_P && INVALID_TD_P (pd)) in pthread_sigqueue()
46 pid_t tid = atomic_forced_read (pd->tid); in pthread_sigqueue()
A Dpthread_kill.c32 struct pthread *pd = (struct pthread *) threadid; in __pthread_kill() local
35 if (DEBUGGING_P && INVALID_TD_P (pd)) in __pthread_kill()
42 pid_t tid = atomic_forced_read (pd->tid); in __pthread_kill()
A Dpthread_setaffinity.c59 const struct pthread *pd = (const struct pthread *) th; in libpthread_hidden_def() local
66 res = __determine_cpumask_size (pd->tid); in libpthread_hidden_def()
80 res = INTERNAL_SYSCALL (sched_setaffinity, err, 3, pd->tid, cpusetsize, in libpthread_hidden_def()
A Dpthread_getaffinity.c31 const struct pthread *pd = (const struct pthread *) th; in __pthread_getaffinity_np() local
34 int res = INTERNAL_SYSCALL (sched_getaffinity, err, 3, pd->tid, in __pthread_getaffinity_np()
A Dcreatethread.c20 #define TLS_VALUE pd
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/alpha/
A Dcreatethread.c19 #define TLS_VALUE (pd + 1)
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/arm/
A Dcreatethread.c19 #define TLS_VALUE (pd + 1)
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/metag/
A Dcreatethread.c20 #define TLS_VALUE (pd + 1)
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/sh/
A Dcreatethread.c19 #define TLS_VALUE (pd + 1)

Completed in 25 milliseconds

12