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

Function rt_in_thread_context

include/rtthread.h:881–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879#endif /* RT_DEBUGING_CONTEXT */
880
881rt_inline rt_bool_t rt_in_thread_context(void)
882{
883 return rt_thread_self() != RT_NULL && rt_interrupt_get_nest() == 0;
884}
885
886/* is scheduler available */
887rt_inline rt_bool_t rt_scheduler_is_available(void)

Callers 1

Calls 2

rt_thread_selfFunction · 0.85
rt_interrupt_get_nestFunction · 0.85

Tested by

no test coverage detected