Lines Matching refs:thread

219 	 * call; the loser is responsible for freeing thread resources. */
230 /* Access to target the exiting thread with syscalls that use
237 /* The thread list lock must be AS-safe, and thus depends on
244 /* If this is the only thread in the list, don't proceed with
245 * termination of the thread, but restore the previous lock and
258 /* At this point we are committed to thread termination. */
260 /* After the kernel thread exits, its tid may be reused. Clear it
264 * see the thread as having exited. Release it now so that no
265 * remaining locks (except thread list) are held if we end up
271 * and the detached thread case where the robust list head will
292 /* Last, unlink thread from the list. This change will not be visible
313 /* The following call unmaps the thread's stack mapping
326 // If a thread call __tl_lock and call __pthread_exit without
526 /* Setup argument structure for the new thread on its stack.
527 * It's safe to access from the caller only until the thread
537 * blocked before the thread list lock can be taken, to ensure
541 /* Ensure SIGCANCEL is unblocked in new thread. This requires
543 * original mask in the calling thread. */
553 * was requested, attempt it before unlocking the thread list so
554 * that the failed thread is never exposed and so that we can
599 struct pthread *thread = (struct pthread *)thread_id;
600 if (NULL == thread) {
606 if (thread == self) {
607 return thread;
612 if (t == thread) return thread;
615 log_print("invalid pthread_t %p passed to %s\n", thread, info);
622 struct pthread* thread = __pthread_list_find(t, "pthread_gettid_np");
624 return thread ? thread->tid : -1;