Re: Task API question
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 27, 2005
- 499 views
Michael Nelson wrote: > > Actually > > task_kill(0) > task_yield() > > without the loop is sufficient to to prevent the top level code from ending. Yes, and it makes me think that if the scheduler finds that no tasks are active, i.e. no task can ever run again, then instead of issuing a fatal error like I do now, I should just abort(0) the program at that point. I had been concerned that this situation might happen sort of accidentally, and the programmer would be puzzled about why his program ended, but now I think he will probably understand what happened, especially since he must have killed task 0 at some point. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com