Page 1 of 1

Why taskYIELD() can't assign a specific time but vTaskDelay can?

Posted: Wed Jan 11, 2017 5:51 am
by roctwo
Hi!
Why taskYIELD() can't assign a specific time but vTaskDelay can?

Re: Why taskYIELD() can't assign a specific time but vTaskDelay can?

Posted: Wed Jan 11, 2017 6:10 am
by ESP_Sprite
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.