vTaskDelete sometimes hangs current task

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: vTaskDelete sometimes hangs current task

Postby ESP_Angus » Wed Jun 19, 2019 12:21 am

Hi maldus,

I'm glad you got everything working smoothly.
maldus wrote:
Tue Jun 18, 2019 11:40 am
(the situation you described should not be possible, as only one task can be reading or writing the list of processes at any given time).
I saw the semaphore protecting the process list and it looked like it would mostly protect in this way, but I think that there was a case where a task had to release the semaphore before calling vTaskDelete(NULL) on itself. The race is in that moment, between releasing the semaphore and calling vTaskDelete(NULL) another task may be scheduled and decide to call vTaskDelete(that task). But I'm not certain.

Who is online

Users browsing this forum: Bing [Bot] and 264 guests