Hi!
Why taskYIELD() can't assign a specific time but vTaskDelay can?
Why taskYIELD() can't assign a specific time but vTaskDelay can?
-
- Posts: 9833
- Joined: Thu Nov 26, 2015 4:08 am
Re: Why taskYIELD() can't assign a specific time but vTaskDelay can?
Because all taskYIELD does is tell the scheduler to re-evaluate which task to run. There's no sense of timed delay there; eg if the task calling taskYIELD still is the one with the highest priority, the thread calling taskYIELD will just continue running.
Who is online
Users browsing this forum: Bing [Bot] and 134 guests