MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / wakeup_sender_wait_reply

Function wakeup_sender_wait_reply

components/lwp/lwp_ipc.c:349–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349static 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
361static void sender_timeout(void *parameter)
362{

Callers

nothing calls this directly

Calls 1

rt_thread_resumeFunction · 0.85

Tested by

no test coverage detected