| 347 | } |
| 348 | |
| 349 | static rt_err_t wakeup_sender_wait_reply(void *object, struct rt_thread *thread) |
| 350 | { |
| 351 | rt_channel_t ch; |
| 352 | |
| 353 | ch = (rt_channel_t)object; |
| 354 | RT_ASSERT(ch->stat == RT_IPC_STAT_ACTIVE && ch->reply == thread); |
| 355 | ch->stat = RT_IPC_STAT_IDLE; |
| 356 | ch->reply = RT_NULL; |
| 357 | thread->error = -RT_EINTR; |
| 358 | return rt_thread_resume(thread); /* wake up the sender */ |
| 359 | } |
| 360 | |
| 361 | static void sender_timeout(void *parameter) |
| 362 | { |
nothing calls this directly
no test coverage detected