Lines Matching refs:result
99 rt_err_t result; in rt_data_queue_push() local
107 result = RT_EOK; in rt_data_queue_push()
116 result = -RT_ETIMEOUT; in rt_data_queue_push()
125 result = rt_thread_suspend_to_list(thread, &queue->suspended_push_list, in rt_data_queue_push()
127 if (result == RT_EOK) in rt_data_queue_push()
149 result = thread->error; in rt_data_queue_push()
151 if (result != RT_EOK) goto __exit; in rt_data_queue_push()
177 return result; in rt_data_queue_push()
182 if ((result == RT_EOK) && queue->evt_notify != RT_NULL) in rt_data_queue_push()
187 return result; in rt_data_queue_push()
216 rt_err_t result; in rt_data_queue_pop() local
226 result = RT_EOK; in rt_data_queue_pop()
235 result = -RT_ETIMEOUT; in rt_data_queue_pop()
243 result = rt_thread_suspend_to_list(thread, &queue->suspended_pop_list, in rt_data_queue_pop()
245 if (result == RT_EOK) in rt_data_queue_pop()
265 result = thread->error; in rt_data_queue_pop()
266 if (result != RT_EOK) in rt_data_queue_pop()
304 return result; in rt_data_queue_pop()
309 if ((result == RT_EOK) && (queue->evt_notify != RT_NULL)) in rt_data_queue_pop()
314 return result; in rt_data_queue_pop()