This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: code fatal error!


ÕÅ ÁÁ wrote:
>      in eCos,kill() function does not release mutex owned by thread which
> will be killed.

Neither does it free its allocated memory, close its open files, etc.
Why should it release its mutexes?

> I think it as a fatal error.right?

Yes, a fatal programmer error. You're supposed to read the documentation
first.

> or more wise machanism
> avoids this state?

Send the thread a message asking it to clean up and terminate itself.

Martin

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]