add RT_DEBUG_SCHEDULER_AVAILABLE check

This commit is contained in:
guozhanxin
2022-01-26 16:02:24 +08:00
parent e665bacf89
commit 9b44535740
6 changed files with 96 additions and 18 deletions

View File

@@ -57,6 +57,12 @@ rt_err_t rt_completion_wait(struct rt_completion *completion,
rt_thread_t thread;
RT_ASSERT(completion != RT_NULL);
/* current context checking */
if (timeout != 0)
{
RT_DEBUG_SCHEDULER_AVAILABLE;
}
result = RT_EOK;
thread = rt_thread_self();