-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 ePendingReady state for task in a pending ready list #696
Conversation
* Add ePendingReady state for task in a pending ready list
The uxTaskGetSystemState needs more consideration. uxTaskGetSystemState also suspends the scheduler. The following approach may fix the problem:
|
(Edit: Deleted a comment that overlooked the inconsistency between Is there a benefit to distinguishing |
Reading Jeff's comment, I agree it could be confusing to expose internal implementation detail. The PR is responding to this scenario: #577, so the question is, is that a valid scenario. Is it valid to call eTaskGetState() when the scheduler is suspended when the generalised rule of thumb is not to call API functions from a critical section or with the scheduler suspended. The head revision already returns eReady for this scenario. |
Agreed with Jeff's and Richard's comment. Let's close this PR and create another for minor update with eReady comment. |
@chinglee-iot Prior to #679, In my opinion returning |
@jefftenney I will create another PR for the uxTaskGetSystemState() function. Let's discuss in the new PR. |
We created another PR for uxTaskGetSystemState() function. #702 |
Add ePendingReady state.
The unit test is updated in another PR.
Description
Test Steps
Run the unit test case test_eTaskGetState_success_not_current_tcb_pending_ready.
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.