Lines Matching refs:thread

84 	 * call; the loser is responsible for freeing thread resources. */
95 /* Access to target the exiting thread with syscalls that use
102 /* The thread list lock must be AS-safe, and thus depends on
106 /* If this is the only thread in the list, don't proceed with
107 * termination of the thread, but restore the previous lock and
117 /* At this point we are committed to thread termination. */
119 /* After the kernel thread exits, its tid may be reused. Clear it
123 * see the thread as having exited. Release it now so that no
124 * remaining locks (except thread list) are held if we end up
130 * and the detached thread case where the robust list head will
151 /* Last, unlink thread from the list. This change will not be visible
172 /* The following call unmaps the thread's stack mapping
340 /* Setup argument structure for the new thread on its stack.
341 * It's safe to access from the caller only until the thread
351 * blocked before the thread list lock can be taken, to ensure
355 /* Ensure SIGCANCEL is unblocked in new thread. This requires
357 * original mask in the calling thread. */
367 * was requested, attempt it before unlocking the thread list so
368 * that the failed thread is never exposed and so that we can
410 struct pthread *thread = (struct pthread *)thread_id;
411 if (NULL == thread) {
417 if (thread == self) {
418 return thread;
423 if (t == thread) return thread;
426 log_print("invalid pthread_t %p passed to %s\n", thread, info);
433 struct pthread* thread = __pthread_list_find(t, "pthread_gettid_np");
435 return thread ? thread->tid : -1;