Lines Matching refs:tid
167 void lwp_cleanup(struct rt_thread *tid) in lwp_cleanup() argument
171 if (tid == NULL) in lwp_cleanup()
177 LOG_D("cleanup thread: %s, stack_addr: 0x%x", tid->parent.name, tid->stack_addr); in lwp_cleanup()
186 lwp = (struct rt_lwp *)tid->lwp; in lwp_cleanup()
187 lwp_thread_signal_detach(&tid->signal); in lwp_cleanup()
228 rt_thread_t tid; in _lwp_thread_entry() local
231 tid = rt_thread_self(); in _lwp_thread_entry()
232 lwp = (struct rt_lwp *)tid->lwp; in _lwp_thread_entry()
233 tid->cleanup = lwp_cleanup; in _lwp_thread_entry()
234 tid->user_stack = RT_NULL; in _lwp_thread_entry()
259 …mode(lwp->args, lwp->text_entry, (void *)USER_STACK_VEND, (char *)tid->stack_addr + tid->stack_siz… in _lwp_thread_entry()
267 rt_thread_t tid; in lwp_self() local
269 tid = rt_thread_self(); in lwp_self()
270 if (tid) in lwp_self()
272 return (struct rt_lwp *)tid->lwp; in lwp_self()
353 int tid = 0; in lwp_execve() local
374 if ((tid = lwp_tid_get()) == 0) in lwp_execve()
382 lwp_tid_put(tid); in lwp_execve()
390 lwp_tid_put(tid); in lwp_execve()
425 thread->tid = tid; in lwp_execve()
426 lwp_tid_set_thread(tid, thread); in lwp_execve()
490 lwp_tid_put(tid); in lwp_execve()