Lines Matching refs:cur_thr

855 static rt_err_t _stats_and_reap_child(rt_lwp_t child, rt_thread_t cur_thr,  in _stats_and_reap_child()  argument
881 static sysret_t _query_event_from_lwp(rt_lwp_t child, rt_thread_t cur_thr, rt_lwp_t self_lwp, in _query_event_from_lwp() argument
907 static pid_t _verify_child_and_reap(rt_thread_t cur_thr, rt_lwp_t self_lwp, in _verify_child_and_reap() argument
928 rc = _query_event_from_lwp(child, cur_thr, self_lwp, options, ustatus); in _verify_child_and_reap()
931 _stats_and_reap_child(child, cur_thr, self_lwp, ustatus, options, uru); in _verify_child_and_reap()
938 static pid_t _reap_any_child_pid(rt_thread_t cur_thr, rt_lwp_t self_lwp, pid_t pair_pgid, in _reap_any_child_pid() argument
953 rc = _query_event_from_lwp(child, cur_thr, self_lwp, options, ustatus); in _reap_any_child_pid()
963 _stats_and_reap_child(child, cur_thr, self_lwp, ustatus, options, uru); in _reap_any_child_pid()
1046 static rt_err_t _wait_for_event(rt_thread_t cur_thr, rt_lwp_t self_lwp, in _wait_for_event() argument
1054 handle->wq_node.polling_thread = cur_thr; in _wait_for_event()
1060 cur_thr->error = RT_EOK; in _wait_for_event()
1065 ret = rt_thread_suspend_with_flag(cur_thr, RT_INTERRUPTIBLE); in _wait_for_event()
1073 ret = cur_thr->error; in _wait_for_event()
1098 static sysret_t _wait_and_reap(rt_thread_t cur_thr, rt_lwp_t self_lwp, const pid_t pid, in _wait_and_reap() argument
1108 rc = _wait_for_event(cur_thr, self_lwp, &handle, pid); in _wait_and_reap()
1117 _stats_and_reap_child(waker, cur_thr, self_lwp, ustatus, options, uru); in _wait_and_reap()
1131 struct rt_thread *cur_thr; in lwp_waitpid() local
1134 cur_thr = rt_thread_self(); in lwp_waitpid()
1137 if (!cur_thr || !self_lwp) in lwp_waitpid()
1147 rc = _verify_child_and_reap(cur_thr, self_lwp, pid, options, status, ru); in lwp_waitpid()
1152 rc = _reap_any_child_pid(cur_thr, self_lwp, 0, options, status, ru); in lwp_waitpid()
1170 rc = _reap_any_child_pid(cur_thr, self_lwp, pair_pgid, options, status, ru); in lwp_waitpid()
1179 rc = _wait_and_reap(cur_thr, self_lwp, pid, options, status, ru); in lwp_waitpid()
1557 rt_thread_t cur_thr = rt_thread_self(); in _notify_parent() local
1559 ext->sigchld.stime = cur_thr->system_time; in _notify_parent()
1560 ext->sigchld.utime = cur_thr->user_time; in _notify_parent()