mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-18 18:34:20 +08:00
documention里的一处小问题 (#6748)
* Update thread-comm.md * Update documentation/thread-comm/thread-comm.md Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
This commit is contained in:
@@ -235,7 +235,7 @@ static void thread1_entry(void *parameter)
|
|||||||
if (rt_mb_recv(&mb, (rt_uint32_t *)&str, RT_WAITING_FOREVER) == RT_EOK)
|
if (rt_mb_recv(&mb, (rt_uint32_t *)&str, RT_WAITING_FOREVER) == RT_EOK)
|
||||||
{
|
{
|
||||||
rt_kprintf("thread1: get a mail from mailbox, the content:%s\n", str);
|
rt_kprintf("thread1: get a mail from mailbox, the content:%s\n", str);
|
||||||
if (str == mb_str3)
|
if(!strcmp(str, mb_str3))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Delay 100ms */
|
/* Delay 100ms */
|
||||||
|
Reference in New Issue
Block a user