hujun260 commented on code in PR #14578: URL: https://github.com/apache/nuttx/pull/14578#discussion_r1859492547
########## sched/sched/sched_unlock.c: ########## @@ -37,281 +37,178 @@ #include "sched/sched.h" /**************************************************************************** - * Public Functions + * Private Data ****************************************************************************/ +#if defined(CONFIG_SCHED_TICKLESS) && \ + (CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_SPORADIC)) +static int preempt_schedule_nestcount = 0; Review Comment: Due to the scheduling logic in sched_preemt_schedule that relies on checking the lockcount to determine the state, if the lockcount is still greater than 0, we cannot distinguish whether the schedlock has been released or not. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
