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