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

Function test_thread_yield_inc_entry

src/utest/thread_tc.c:573–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571static volatile rt_uint32_t yield_count;
572
573static void test_thread_yield_inc_entry(void *parameter)
574{
575 rt_uint32_t loop = 0;
576
577 while (1)
578 {
579 if (loop++ > 10001)
580 break;
581 yield_count++;
582 rt_thread_yield();
583 }
584}
585
586static void test_thread_yield_entry(void *parameter)
587{

Callers

nothing calls this directly

Calls 1

rt_thread_yieldFunction · 0.85

Tested by

no test coverage detected