mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
add RT_DEBUG_SCHEDULER_AVAILABLE check
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user