Skip to content
Snippets Groups Projects
Commit a250ad7e authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #88 from mehlis/msg-send-return-type

in msg_send_receive: return result from msg_send
parents e11ef8d0 62994314
No related branches found
No related tags found
No related merge requests found
...@@ -142,11 +142,10 @@ int msg_send_receive(msg_t *m, msg_t *reply, unsigned int target_pid) ...@@ -142,11 +142,10 @@ int msg_send_receive(msg_t *m, msg_t *reply, unsigned int target_pid)
tcb_t *me = (tcb_t*) sched_threads[thread_pid]; tcb_t *me = (tcb_t*) sched_threads[thread_pid];
sched_set_status(me, STATUS_REPLY_BLOCKED); sched_set_status(me, STATUS_REPLY_BLOCKED);
me->wait_data = (void*) reply; me->wait_data = (void*) reply;
msg_send(m, target_pid, true);
/* msg_send blocks until reply received */ /* msg_send blocks until reply received */
return 1; return msg_send(m, target_pid, true);
} }
int msg_reply(msg_t *m, msg_t *reply) int msg_reply(msg_t *m, msg_t *reply)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment