Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 22 of 22) sorted by relevance

/components/lwp/
A Dlwp_tid.c49 int tid = 0; in lwp_tid_get() local
67 for (tid = current_tid + 1; tid < TID_MAX; tid++) in lwp_tid_get()
77 for (tid = 1; tid <= current_tid; tid++) in lwp_tid_get()
86 p->avl_key = tid; in lwp_tid_get()
88 current_tid = tid; in lwp_tid_get()
92 if (tid <= 0) in lwp_tid_get()
97 return tid; in lwp_tid_get()
100 void lwp_tid_put(int tid) in lwp_tid_put() argument
107 p = lwp_avl_find(tid, lwp_tid_root); in lwp_tid_put()
141 p = lwp_avl_find(tid, lwp_tid_root); in lwp_tid_get_thread_raw()
[all …]
A Dlwp.c171 if (tid == NULL) in lwp_cleanup()
228 rt_thread_t tid; in _lwp_thread_entry() local
231 tid = rt_thread_self(); 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()
353 int tid = 0; in lwp_execve() local
382 lwp_tid_put(tid); in lwp_execve()
390 lwp_tid_put(tid); in lwp_execve()
425 thread->tid = tid; in lwp_execve()
[all …]
A Dlwp.h225 void lwp_tid_put(int tid);
233 rt_thread_t lwp_tid_get_thread_and_inc_ref(int tid);
234 rt_thread_t lwp_tid_get_thread_raw(int tid);
242 void lwp_tid_set_thread(int tid, rt_thread_t thread);
259 int lwp_setaffinity(int tid, int cpu);
A Dlwp_syscall.c326 rt_thread_t tid; in _crt_thread_entry() local
331 user_stack = (rt_size_t)tid->user_stack + tid->user_stack_size; in _crt_thread_entry()
335 …arch_crt_start_umode(parameter, tid->user_entry, (void *)user_stack, (char *)tid->stack_addr + tid in _crt_thread_entry()
392 if (tid && tid->lwp) in sys_exit()
3243 int tid = 0; in sys_thread_create() local
3311 thread->tid = tid; in sys_thread_create()
3341 int tid = 0; in _sys_clone() local
3412 thread->tid = tid; in _sys_clone()
3559 int tid = 0; in _sys_fork() local
3632 thread->tid = tid; in _sys_fork()
[all …]
A Dlwp_futex.c571 int tid = 0; in _futex_lock_pi() local
586 tid = word & FUTEX_TID_MASK; in _futex_lock_pi()
591 nword = current_thread->tid; in _futex_lock_pi()
602 thread = lwp_tid_get_thread_and_inc_ref(tid); in _futex_lock_pi()
653 nword = current_thread->tid | FUTEX_WAITERS; in _futex_lock_pi()
841 if ((word & FUTEX_TID_MASK) != thread->tid) in _handle_futex_death()
A Dlwp_pid.c604 lwp_tid_put(thread->tid); in _thread_exit()
605 thread->tid = 0; in _thread_exit()
653 if (main_thread == tid) in lwp_exit()
661 while ((list = tid->sibling.prev) != &lwp->t_grp) in lwp_exit()
1334 … rt_kprintf("%4d %4d %-*.*s ", lwp_to_pid(lwp), thread->tid, maxlen, RT_NAME_MAX, lwp->cmd); in list_process()
1515 lwp_tid_put(sub_thread->tid); in _wait_sibling_exit()
1516 sub_thread->tid = 0; in _wait_sibling_exit()
1664 static int _lwp_setaffinity(int tid, int cpu) in _lwp_setaffinity() argument
1669 thread = lwp_tid_get_thread_and_inc_ref(tid); in _lwp_setaffinity()
1682 int lwp_setaffinity(int tid, int cpu) in lwp_setaffinity() argument
[all …]
A Dlwp_signal.c53 siginfo->ksiginfo.from_tid = self_thr->tid; in siginfo_create()
/components/libc/posix/pthreads/
A Dpthread.c296 tid->cleanup = RT_NULL; in _pthread_cleanup()
299 rt_free(tid->stack_addr); in _pthread_cleanup()
305 rt_free(tid); in _pthread_cleanup()
435 if (ptd->tid == RT_NULL) in pthread_create()
667 rt_thread_t tid; in pthread_self() local
670 tid = rt_thread_self(); in pthread_self()
951 rt_thread_t tid; in pthread_exit() local
983 tid = ptd->tid; in pthread_exit()
1004 rt_thread_detach(tid); in pthread_exit()
1446 rt_thread_t tid; in pthread_cancel() local
[all …]
A Dpthread_internal.h43 rt_thread_t tid; member
A Dpthread.h165 int pthread_create (pthread_t *tid, const pthread_attr_t *attr,
/components/libc/compilers/picolibc/
A Dsyscall.c19 rt_thread_t tid = RT_NULL; in pico_get_errno() local
27 tid = rt_thread_self(); in pico_get_errno()
28 if (tid == RT_NULL) in pico_get_errno()
33 return (int *)&tid->error; in pico_get_errno()
/components/libc/posix/signal/
A Dposix_signal.c50 rt_thread_t tid; in sigprocmask() local
52 tid = rt_thread_self(); in sigprocmask()
55 if (oset) *oset = tid->sig_mask; in sigprocmask()
62 tid->sig_mask |= *set; in sigprocmask()
65 tid->sig_mask &= ~*set; in sigprocmask()
68 tid->sig_mask = *set; in sigprocmask()
/components/drivers/ipc/
A Dwaitqueue.c202 rt_thread_t tid = rt_thread_self(); in _rt_wqueue_wait() local
203 rt_timer_t tmr = &(tid->thread_timer); in _rt_wqueue_wait()
225 tid->error = RT_EOK; in _rt_wqueue_wait()
233 ret = rt_thread_suspend_with_flag(tid, suspend_flag); in _rt_wqueue_wait()
264 return tid->error > 0 ? -tid->error : tid->error; in _rt_wqueue_wait()
/components/libc/posix/libdl/
A Ddlmodule.c414 rt_thread_t tid; in dlmodule_self() local
417 tid = rt_thread_self(); in dlmodule_self()
418 if (tid) in dlmodule_self()
576 rt_thread_t tid; in dlmodule_exec() local
586 if (tid) in dlmodule_exec()
589 module->main_thread = tid; in dlmodule_exec()
591 rt_thread_startup(tid); in dlmodule_exec()
753 rt_thread_t tid; in dlmodule_exec_custom() local
763 if (tid) in dlmodule_exec_custom()
766 module->main_thread = tid; in dlmodule_exec_custom()
[all …]
/components/lwp/arch/risc-v/rv64/
A Dlwp_arch.c47 rt_thread_t tid = rt_thread_self(); in lwp_copy_return_code_to_user_stack() local
49 if (tid->user_stack != RT_NULL) in lwp_copy_return_code_to_user_stack()
52 rt_size_t userstack = (rt_size_t)tid->user_stack + tid->user_stack_size - size; in lwp_copy_return_code_to_user_stack()
/components/utilities/utest/
A Dutest.c315 rt_thread_t tid = RT_NULL; in utest_thread_create() local
316 tid = rt_thread_create("utest", in utest_thread_create()
319 if (tid != RT_NULL) in utest_thread_create()
321 rt_thread_startup(tid); in utest_thread_create()
/components/libc/compilers/common/
A Dctime.c827 int tid; member
839 RT_ASSERT(data->tid); in _lwp_timer_event_from_tid()
842 thread = lwp_tid_get_thread_and_inc_ref(data->tid); in _lwp_timer_event_from_tid()
849 LOG_D("%s: Do kill failed(tid %d) returned %d", __func__, data->tid, ret); in _lwp_timer_event_from_tid()
907 int tid = *(int *)ptid; in rtthread_timer_wrapper() local
911 if (!tid) in rtthread_timer_wrapper()
918 data->tid = tid; in rtthread_timer_wrapper()
/components/finsh/
A Dshell.c868 rt_thread_t tid; in finsh_system_init() local
914 tid = rt_thread_create(FINSH_THREAD_NAME, in finsh_system_init()
919 tid = &finsh_thread; in finsh_system_init()
930 if (tid != NULL && result == RT_EOK) in finsh_system_init()
931 rt_thread_startup(tid); in finsh_system_init()
/components/drivers/rtc/
A Ddev_alarm.c824 rt_thread_t tid; in rt_alarm_system_init() local
830 tid = rt_thread_create("alarmsvc", in rt_alarm_system_init()
835 if (tid != RT_NULL) in rt_alarm_system_init()
836 rt_thread_startup(tid); in rt_alarm_system_init()
/components/drivers/spi/
A Ddev_spi_wifi_rw009.c704 rt_thread_t tid; in rt_hw_wifi_init() local
707 tid = rt_thread_create("wifi", in rt_hw_wifi_init()
714 if (tid != RT_NULL) in rt_hw_wifi_init()
715 rt_thread_startup(tid); in rt_hw_wifi_init()
/components/drivers/ofw/
A Dbase.c873 int tid, addr_cells = rt_ofw_io_addr_cells(cpu_np); in rt_ofw_get_cpu_node() local
893 for (tid = 0; tid < prop_len; ++tid) in rt_ofw_get_cpu_node()
901 *thread = tid; in rt_ofw_get_cpu_node()
/components/dfs/dfs_v2/src/
A Ddfs_pcache.c428 rt_thread_t tid; in dfs_pcache_init() local
444 tid = rt_thread_create("pcache", dfs_pcache_thread, 0, 8192, 25, 5); in dfs_pcache_init()
445 if (tid) in dfs_pcache_init()
447 rt_thread_startup(tid); in dfs_pcache_init()

Completed in 53 milliseconds