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

Function rt_critical_level

src/scheduler_up.c:715–718  ·  view source on GitHub ↗

* @brief Get the scheduler lock level. * * @return the level of the scheduler lock. 0 means unlocked. */

Source from the content-addressed store, hash-verified

713 * @return the level of the scheduler lock. 0 means unlocked.
714 */
715rt_uint16_t rt_critical_level(void)
716{
717 return (rt_uint16_t)rt_atomic_load(&rt_scheduler_lock_nest);
718}
719RTM_EXPORT(rt_critical_level);
720
721rt_err_t rt_sched_thread_bind_cpu(struct rt_thread *thread, int cpu)

Callers 4

rt_cpus_lockFunction · 0.70
rt_thread_closeFunction · 0.70
rt_hw_trap_exceptionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected