[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mutex problem



On 03/29/2011 08:22 AM, Leon Pollak wrote:
>
> On Tuesday March 29 2011, Joel Sherrill wrote:
>
> > On 03/29/2011 03:39 AM, Leon Pollak wrote:
>
> > > I ask the community for a deep pardon - the problem found and, as
>
> > > always, is stupid.
>
> >
>
> > OK. You tease us. What was it? :D
>
> >
>
> > My reading of this was that it behaved like it was supposed to. The high
>
> > priority task "transferred" the semaphore to a low priority one and
>
> > continued to run.
>
> The high priority task destroyed (as there was an error signal) the 
> global structure, which contained between others also the semaphore 
> ID, after it released it.
>
> While the low priority did not checked the result of "release", which 
> showed the incorrect ID...:-(
>
> Sorry to disturb the people...:-(
>
No.  It is good to see closure on real problems.  There are lots
of reasons why things go wrong.  We all learn from each other.


> -- 
>
> Leon
>


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985