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

roctwo
Posts: 95
Joined: Mon Nov 28, 2016 3:12 am

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

Postby roctwo » Wed Jan 11, 2017 5:51 am

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

ESP_Sprite
Posts: 9833
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed Jan 11, 2017 6:10 am

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: Google [Bot] and 126 guests