You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by "kasjer (via GitHub)" <gi...@apache.org> on 2023/03/16 13:43:01 UTC
[GitHub] [mynewt-core] kasjer opened a new pull request, #2961: os/kernel: Fix os_sched_sleep when task switch is locked
kasjer opened a new pull request, #2961:
URL: https://github.com/apache/mynewt-core/pull/2961
When os_sched_sleep() was called from task that previously disabled scheduler (using os_sched_suspend()) current task was put in sleep queue and continue to execute while not being marked as ready.
If task called os_sched_sleep() again g_os_sleep_list and g_os_run_list get mixed resulting in idle task being active all the time.
Now os_sched_sleep() does not modify task list when scheduling is locked. It means that os_delay() will not not put task to sleep and will exit immediately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [mynewt-core] kasjer merged pull request #2961: os/kernel: Fix os_sched_sleep when task switch is locked
Posted by "kasjer (via GitHub)" <gi...@apache.org>.
kasjer merged PR #2961:
URL: https://github.com/apache/mynewt-core/pull/2961
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org