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

Function test_timeout_entry

src/utest/mutex_pi_tc.c:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static void test_timeout_entry(void *para)
162{
163 rt_err_t ret;
164
165 rt_thread_mdelay(50);
166 ret = rt_mutex_take(&_timeout_mutex, rt_tick_from_millisecond(100));
167 uassert_true(ret == -RT_ETIMEOUT);
168 _sync_flag ++;
169}
170
171static void test_mutex_pi_timeout(void)
172{

Callers

nothing calls this directly

Calls 3

rt_thread_mdelayFunction · 0.85
rt_mutex_takeFunction · 0.85
rt_tick_from_millisecondFunction · 0.85

Tested by

no test coverage detected