Lines Matching refs:error
166 thread->error = -RT_ETIMEOUT; in _thread_timeout()
230 thread->error = RT_EOK; in _thread_init()
483 rt_err_t error; in _thread_detach() local
492 error = rt_thread_close(thread); in _thread_detach()
500 return error; in _thread_detach()
634 thread->error = RT_EOK; in _thread_sleep()
648 thread->error = -RT_EINTR; in _thread_sleep()
657 if (thread->error == -RT_ETIMEOUT) in _thread_sleep()
658 thread->error = RT_EOK; in _thread_sleep()
706 thread->error = RT_EOK; in rt_thread_delay_until()
731 if (thread->error == -RT_ETIMEOUT) in rt_thread_delay_until()
733 thread->error = RT_EOK; in rt_thread_delay_until()
742 return thread->error; in rt_thread_delay_until()
799 rt_err_t error; in rt_thread_control() local
802 error = rt_sched_thread_change_priority(thread, *(rt_uint8_t *)arg); in rt_thread_control()
804 return error; in rt_thread_control()
809 rt_err_t error; in rt_thread_control() local
812 error = rt_sched_thread_reset_priority(thread, *(rt_uint8_t *)arg); in rt_thread_control()
814 return error; in rt_thread_control()
1026 rt_err_t error; in rt_thread_resume() local
1036 error = rt_sched_thread_ready(thread); in rt_thread_resume()
1038 if (!error) in rt_thread_resume()
1040 error = rt_sched_unlock_n_resched(slvl); in rt_thread_resume()
1046 if (error == -RT_ESCHEDLOCKED) in rt_thread_resume()
1048 error = RT_EOK; in rt_thread_resume()
1058 return error; in rt_thread_resume()