add RT_DEBUG_SCHEDULER_AVAILABLE check

This commit is contained in:
guozhanxin
2022-01-26 16:03:31 +08:00
parent e665bacf89
commit 9b44535740
6 changed files with 96 additions and 18 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ int rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec)
rt_base_t level;
/* current context checking */
RT_DEBUG_NOT_IN_INTERRUPT;
RT_DEBUG_SCHEDULER_AVAILABLE;
tick = rt_tick_from_millisecond(msec);