[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
task delete and semaphore
- Date: Mon, 02 Jul 2007 15:59:47 +0800
- From: paulw at omnitronics.com.au (Paul Whitfield)
- Subject: task delete and semaphore
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.
=========================================================================