# Problem understanding vTaskDelete()

**URL:** <https://forums.freertos.org/t/problem-understanding-vtaskdelete/4042>\
**Category:** Kernel\
**Created:** [March 12, 2012, 4:18pm UTC](https://forums.freertos.org/t/problem-understanding-vtaskdelete/4042 "2012-03-12T16:18:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 14, 2012, 10:19am UTC](https://forums.freertos.org/t/problem-understanding-vtaskdelete/4042/5 "2012-03-14T10:19:46Z")

</div>

**[paulgcoleman](https://sourceforge.net/u/paulgcoleman/)** wrote on [Wednesday, March 14, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/b453ae79/#e5a9):

Thanks for the reply.

The problem I face is that the tasks can be in any one of a number of states within the state machine probably waiting on motors to finish moving a set distance. For some axes this could be a 15 second wait, during which the task is suspended waiting for a semaphore (which is give via an ISR at the end of the movement). Therefore it is very difficult to just tell a task to go to an error recovery state because it will probably be asleep.

---

_[View the full topic](https://forums.freertos.org/t/problem-understanding-vtaskdelete/4042)._
