This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: mutex and mailbox query
> > Problem is, you have no way of knowing if any threads are waiting on
> > the mbox or the mutex. There are no API calls to tell you this.
>
> Yes, the following scenario limits the usage of mbox to cyg_mbox_tryget,
> or maybe the cyg_thread_release could be used.
Don't forget that cyg_mbox_put will also block, so you also have to do
a tryput.
cyg_thread_release is no use, you don't know which threads to
release!
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss