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

Function thread2_send_static_mb

src/utest/mailbox_tc.c:165–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static void thread2_send_static_mb(void *arg)
166{
167 rt_err_t res = RT_EOK;
168
169 res = rt_mb_send(&test_static_mb, (rt_ubase_t)&mb_send_str1);
170 if (res != RT_EOK)
171 {
172 uassert_false(1);
173 }
174 rt_thread_mdelay(100);
175
176 res = rt_mb_send_wait(&test_static_mb, (rt_ubase_t)&mb_send_str2, 10);
177 if (res != RT_EOK)
178 {
179 uassert_false(1);
180 }
181 rt_thread_mdelay(100);
182
183 res = rt_mb_urgent(&test_static_mb, (rt_ubase_t)&mb_send_str3);
184 if (res != RT_EOK)
185 {
186 uassert_false(1);
187 }
188
189 static_mb_send_thread_finish = 1;
190}
191
192static void thread1_recv_static_mb(void *arg)
193{

Callers

nothing calls this directly

Calls 4

rt_mb_sendFunction · 0.85
rt_thread_mdelayFunction · 0.85
rt_mb_send_waitFunction · 0.85
rt_mb_urgentFunction · 0.85

Tested by

no test coverage detected