提交 069086ae 编写于 作者: 沙子屑耶's avatar 沙子屑耶 提交者: guo

[kernel] 为rt_thread_sleep添加上下文检查

上级 e2231668
......@@ -577,6 +577,9 @@ rt_err_t rt_thread_sleep(rt_tick_t tick)
RT_ASSERT(thread != RT_NULL);
RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
/* current context checking */
RT_DEBUG_SCHEDULER_AVAILABLE(RT_TRUE);
/* disable interrupt */
level = rt_hw_interrupt_disable();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册