-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add RT_DEBUG_SCHEDULER_AVAILABLE check. #4740
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3deb1c7
to
c303baa
Compare
mysterywolf
requested changes
May 28, 2021
b2b89da
to
420f3a3
Compare
mysterywolf
approved these changes
May 30, 2021
Guozhanxin
commented
Jun 1, 2021
BernardXiong
reviewed
Jun 4, 2021
enkiller
reviewed
Jun 24, 2021
a08ede7
to
9b44535
Compare
多了1k的rom占用,有些bsp编译不过了。。。 |
enkiller
reviewed
Jan 26, 2022
enkiller
approved these changes
Jan 27, 2022
armink
approved these changes
Jan 27, 2022
enkiller
approved these changes
Jan 28, 2022
mysterywolf
approved these changes
Jan 28, 2022
https://club.rt-thread.org/ask/question/434519.html 开启内存堆后,main 线程就切换成动态创建了,这样就出现了在调度器启动前调用 malloc 的行为,进而会调用 |
24 tasks
mysterywolf
reviewed
Apr 11, 2022
/* parameter check */ | ||
RT_ASSERT(event != RT_NULL); | ||
RT_ASSERT(rt_object_get_type(&event->parent.parent) == RT_Object_Class_Event); | ||
|
||
/* current context checking */ | ||
RT_DEBUG_SCHEDULER_AVAILABLE(RT_TRUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
郭老师,这个位置是RT_TRUE还是timeout != 0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
拉取/合并请求描述:(PR description)
[
在获取锁的时候,如果调度器不可用,会导致系统异常,而且没有任何提示信息,破坏临界区。用来检查是否存在滥用 rt_enter_critical 的情况。
所以添加了两种情况下的检查:
在ART-Pi上完成了测试。
]
以下的内容不应该在提交PR时的message修改,修改下述message,PR会被直接关闭。请在提交PR后,浏览器查看PR并对以下检查项逐项check,没问题后逐条在页面上打钩。
The following content must not be changed in the submitted PR message. Otherwise, the PR will be closed immediately. After submitted PR, please use a web browser to visit PR, and check items one by one, and ticked them if no problem.
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up