task delete and semaphore

Paul Whitfield paulw at omnitronics.com.au
Mon Jul 2 07:59:47 UTC 2007


WuHao wrote:
> How does the task to be deleted get all resources it holds?
> Typically when the task holds tty's write mutex.
> Paul Whitfield wrote:
>>
>

As described in the manual, you should signal the task to clean up
and delete itself.

As per the manual:
--------------------

If a task holds RTEMS resources, the task should be allowed to 
deallocate its resources before deletion. A task can be directed to 
release its resources and delete itself by restarting it with a special 
argument or by sending it a message, an event, or a signal.


Regards


Paul .

=========================================================================
The information in this e-mail is intended for the addressee only.
Unauthorised use, copying, disclosure or distribution by anyone else
is prohibited. Please let us know immediately if you receive this
e-mail in error. Thank you.
=========================================================================




More information about the users mailing list