1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

ipc_pingpong: start receiving thread immediately

Rationale: When using `msg_send_receive()` the receiving thread needs to
be already in receiving mode.
This commit is contained in:
Oleg Hahm 2014-03-16 19:18:25 +01:00
parent 3c54edf4d6
commit e6241b13de

View File

@ -45,7 +45,7 @@ int main(void)
msg_t m;
int pid = thread_create(second_thread_stack, sizeof(second_thread_stack),
PRIORITY_MAIN - 1, CREATE_WOUT_YIELD | CREATE_STACKTEST,
PRIORITY_MAIN - 1, CREATE_STACKTEST,
second_thread, "pong");
m.content.value = 1;