Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 41) sorted by relevance

12

/sysdeps/htl/
A Dpt-cond-timedwait.c105 ctx.wakeup = self; in __pthread_cond_timedwait_internal()
118 && self->cancel_pending; in __pthread_cond_timedwait_internal()
127 self->cancel_hook_arg = &ctx; in __pthread_cond_timedwait_internal()
128 oldtype = self->cancel_type; in __pthread_cond_timedwait_internal()
158 __pthread_block (self); in __pthread_cond_timedwait_internal()
162 if (self->prevp == NULL) in __pthread_cond_timedwait_internal()
181 __pthread_dequeue (self); in __pthread_cond_timedwait_internal()
194 __pthread_block (self); in __pthread_cond_timedwait_internal()
199 self->cancel_hook = NULL; in __pthread_cond_timedwait_internal()
201 self->cancel_type = oldtype; in __pthread_cond_timedwait_internal()
[all …]
A Dpt-setspecific.c26 struct __pthread *self = _pthread_self (); in __pthread_setspecific() local
32 if (key >= self->thread_specifics_size) in __pthread_setspecific()
36 void **new = realloc (self->thread_specifics, in __pthread_setspecific()
41 memset (&new[self->thread_specifics_size], 0, in __pthread_setspecific()
42 (newsize - self->thread_specifics_size) * sizeof (new[0])); in __pthread_setspecific()
43 self->thread_specifics = new; in __pthread_setspecific()
44 self->thread_specifics_size = newsize; in __pthread_setspecific()
47 self->thread_specifics[key] = (void *) value; in __pthread_setspecific()
A Dpt-rwlock-timedwrlock.c35 struct __pthread *self; in __pthread_rwlock_timedwrlock_internal() local
57 self = _pthread_self (); in __pthread_rwlock_timedwrlock_internal()
60 __pthread_enqueue (&rwlock->__writerqueue, self); in __pthread_rwlock_timedwrlock_internal()
65 err = __pthread_timedblock (self, abstime, clockid); in __pthread_rwlock_timedwrlock_internal()
69 __pthread_block (self); in __pthread_rwlock_timedwrlock_internal()
73 if (self->prevp == NULL) in __pthread_rwlock_timedwrlock_internal()
83 __pthread_dequeue (self); in __pthread_rwlock_timedwrlock_internal()
89 __pthread_block (self); in __pthread_rwlock_timedwrlock_internal()
A Dpt-getspecific.c26 struct __pthread *self; in __pthread_getspecific() local
32 self = _pthread_self (); in __pthread_getspecific()
33 if (key >= self->thread_specifics_size) in __pthread_getspecific()
36 return self->thread_specifics[key]; in __pthread_getspecific()
A Dpt-rwlock-timedrdlock.c35 struct __pthread *self; in __pthread_rwlock_timedrdlock_internal() local
71 self = _pthread_self (); in __pthread_rwlock_timedrdlock_internal()
74 __pthread_enqueue (&rwlock->__readerqueue, self); in __pthread_rwlock_timedrdlock_internal()
79 err = __pthread_timedblock (self, abstime, clockid); in __pthread_rwlock_timedrdlock_internal()
83 __pthread_block (self); in __pthread_rwlock_timedrdlock_internal()
87 if (self->prevp == NULL) in __pthread_rwlock_timedrdlock_internal()
97 __pthread_dequeue (self); in __pthread_rwlock_timedrdlock_internal()
103 __pthread_block (self); in __pthread_rwlock_timedrdlock_internal()
A Dtimer_routines.c339 self->current_timer = 0; in thread_expire_timer()
341 pthread_cond_broadcast (&self->cond); in thread_expire_timer()
353 struct thread_node *self = arg; in thread_func() local
359 pthread_cleanup_push (thread_cleanup, self); in thread_func()
369 first = list_first (&self->timer_queue); in thread_func()
370 if (first != list_null (&self->timer_queue)) in thread_func()
403 __timer_thread_queue_timer (self, timer); in thread_func()
406 thread_expire_timer (self, timer); in thread_func()
408 first = list_first (&self->timer_queue); in thread_func()
409 if (first == list_null (&self->timer_queue)) in thread_func()
[all …]
A Dpt-barrier-wait.c61 struct __pthread *self = _pthread_self (); in pthread_barrier_wait() local
64 __pthread_enqueue (&barrier->__queue, self); in pthread_barrier_wait()
67 __pthread_block (self); in pthread_barrier_wait()
/sysdeps/nptl/
A D_Fork.c31 struct pthread *self = THREAD_SELF; in _Fork() local
44 self->robust_prev = &self->robust_head; in _Fork()
46 self->robust_head.list = &self->robust_head; in _Fork()
47 INTERNAL_SYSCALL_CALL (set_robust_list, &self->robust_head, in _Fork()
A Dlibc_start_call_main.h48 struct pthread *self = THREAD_SELF; in __libc_start_call_main() local
51 unwind_buf.priv.data.prev = THREAD_GETMEM (self, cleanup_jmp_buf); in __libc_start_call_main()
52 unwind_buf.priv.data.cleanup = THREAD_GETMEM (self, cleanup); in __libc_start_call_main()
55 THREAD_SETMEM (self, cleanup_jmp_buf, &unwind_buf); in __libc_start_call_main()
A Dfork.h58 struct pthread *self = (struct pthread *) THREAD_SELF; in reclaim_stacks() local
104 if (curp != self) in reclaim_stacks()
140 list_del (&self->list); in reclaim_stacks()
146 if (__glibc_unlikely (THREAD_GETMEM (self, user_stack))) in reclaim_stacks()
147 list_add (&self->list, &GL (dl_stack_user)); in reclaim_stacks()
149 list_add (&self->list, &GL (dl_stack_used)); in reclaim_stacks()
A Dlibc-lock.h92 void *self = THREAD_SELF; \
93 if ((NAME).owner != self) \
96 (NAME).owner = self; \
110 void *self = THREAD_SELF; \
111 if ((NAME).owner != self) \
115 (NAME).owner = self; \
/sysdeps/unix/sysv/linux/
A Drseq-internal.h30 rseq_register_current_thread (struct pthread *self, bool do_rseq) in rseq_register_current_thread() argument
34 int ret = INTERNAL_SYSCALL_CALL (rseq, &self->rseq_area, in rseq_register_current_thread()
35 sizeof (self->rseq_area), in rseq_register_current_thread()
40 THREAD_SETMEM (self, rseq_area.cpu_id, RSEQ_CPU_ID_REGISTRATION_FAILED); in rseq_register_current_thread()
45 rseq_register_current_thread (struct pthread *self, bool do_rseq) in rseq_register_current_thread() argument
47 THREAD_SETMEM (self, rseq_area.cpu_id, RSEQ_CPU_ID_REGISTRATION_FAILED); in rseq_register_current_thread()
A Dglibcsyscalls.py76 def __init__(self, lines): argument
77 self.syscalls = []
79 self.kernel_version = None
80 self.__lines = tuple(lines)
81 for line in self.__lines:
106 def merge(self, names): argument
116 for line in self.__lines:
179 self.name = name
180 self.path = path
182 def __repr__(self): argument
[all …]
A Dsafe-fatal.h28 pid_t self = INTERNAL_SYSCALL_CALL (getpid); in __safe_fatal() local
29 INTERNAL_SYSCALL_CALL (kill, self, SIGKILL); in __safe_fatal()
/sysdeps/mach/hurd/htl/
A Dpt-mutex-lock.c29 struct __pthread *self; in __pthread_mutex_lock() local
40 self = _pthread_self (); in __pthread_mutex_lock()
41 if (mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_lock()
51 mtx_set_owner (mtxp, self, flags); in __pthread_mutex_lock()
56 self = _pthread_self (); in __pthread_mutex_lock()
57 if (mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_lock()
61 mtx_set_owner (mtxp, self, flags); in __pthread_mutex_lock()
67 self = _pthread_self (); in __pthread_mutex_lock()
68 ROBUST_LOCK (self, mtxp, lll_robust_lock, flags); in __pthread_mutex_lock()
A Dpt-mutex-trylock.c29 struct __pthread *self; in __pthread_mutex_trylock() local
41 self = _pthread_self (); in __pthread_mutex_trylock()
42 if (mtx_owned_p (mtxp, self, mtxp->__flags)) in __pthread_mutex_trylock()
52 mtx_set_owner (mtxp, self, mtxp->__flags); in __pthread_mutex_trylock()
61 self = _pthread_self (); in __pthread_mutex_trylock()
63 mtx_set_owner (mtxp, self, mtxp->__flags); in __pthread_mutex_trylock()
71 self = _pthread_self (); in __pthread_mutex_trylock()
72 ROBUST_LOCK (self, mtxp, lll_robust_trylock); in __pthread_mutex_trylock()
A Dpt-mutex-timedlock.c31 struct __pthread *self; in __pthread_mutex_clocklock() local
41 self = _pthread_self (); in __pthread_mutex_clocklock()
42 if (mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_clocklock()
52 mtx_set_owner (mtxp, self, flags); in __pthread_mutex_clocklock()
59 self = _pthread_self (); in __pthread_mutex_clocklock()
60 if (mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_clocklock()
63 mtx_set_owner (mtxp, self, flags); in __pthread_mutex_clocklock()
70 self = _pthread_self (); in __pthread_mutex_clocklock()
71 ROBUST_LOCK (self, mtxp, lll_robust_abstimed_lock, tsp, flags, clockid); in __pthread_mutex_clocklock()
A Dpt-mutex-unlock.c29 struct __pthread *self; in __pthread_mutex_unlock() local
39 self = _pthread_self (); in __pthread_mutex_unlock()
40 if (!mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_unlock()
51 self = _pthread_self (); in __pthread_mutex_unlock()
52 if (!mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_unlock()
65 self = _pthread_self (); in __pthread_mutex_unlock()
68 else if (mtxp->__owner_id != self->thread in __pthread_mutex_unlock()
A Dpt-hurd-cond-timedwait.c47 struct __pthread *self = _pthread_self (); in __pthread_hurd_cond_timedwait_internal() local
62 unblock = self->prevp != NULL; in __pthread_hurd_cond_timedwait_internal()
64 __pthread_dequeue (self); in __pthread_hurd_cond_timedwait_internal()
68 __pthread_wakeup (self); in __pthread_hurd_cond_timedwait_internal()
93 __pthread_enqueue (&cond->__queue, self); in __pthread_hurd_cond_timedwait_internal()
120 err = __pthread_timedblock (self, abstime, clock_id); in __pthread_hurd_cond_timedwait_internal()
124 __pthread_block (self); in __pthread_hurd_cond_timedwait_internal()
131 if (self->prevp == NULL) in __pthread_hurd_cond_timedwait_internal()
142 __pthread_dequeue (self); in __pthread_hurd_cond_timedwait_internal()
148 __pthread_block (self); in __pthread_hurd_cond_timedwait_internal()
A Dpt-mutex-transfer-np.c30 struct __pthread *self = _pthread_self (); in __pthread_mutex_transfer_np() local
35 else if (pt == self) in __pthread_mutex_transfer_np()
48 if (!mtx_owned_p (mtxp, self, flags)) in __pthread_mutex_transfer_np()
61 if (mtxp->__owner_id != self->thread in __pthread_mutex_transfer_np()
/sysdeps/alpha/
A Dmachine-gmon.h19 #define _MCOUNT_DECL(from, self) \ argument
20 void __mcount (u_long from, u_long self)
/sysdeps/ia64/
A Dmachine-gmon.h19 #define _MCOUNT_DECL(from, self) \ argument
20 void __mcount (u_long from, u_long self)
/sysdeps/hppa/
A Dmachine-gmon.h21 #define _MCOUNT_DECL(from, self) \ argument
22 void _mcount (u_long from, u_long self)
/sysdeps/pthread/
A Dtst-eintr4.c33 pthread_t self = pthread_self (); in do_test() local
35 setup_eintr (SIGUSR1, &self); in do_test()
A Dtst-eintr3.c46 pthread_t self = pthread_self (); in do_test() local
48 setup_eintr (SIGUSR1, &self); in do_test()

Completed in 40 milliseconds

12