[EMAIL PROTECTED] wrote:
>
> On Tue, Dec 05, 2000 at 05:19:36PM +0100, Hans de Goede wrote:
> > HI all,
> >
> > Try the following:
> >
> > -create a semaphore
> > -create a task
> > -let the task wait on the semaphore, no timeout
> > -delete the task
> > -delete the semaphore -> oops
> >
> > The problem:
> >
> > rt_task_ipc_deletes unlinks the task from the semaphores wait list, but
> > doesn't up the value of the semaphor
>
> Recommended to use the POSIX semaphores in RTL instead of ipc.
Yes, I know, but I'm working based on some old code which was
rtlinux-1.1 based, we made the decission to stick with the 1.1 api's
instead of rewrite that code.
In retrospect that might have been a bad choice, but the project is
nearly finished now, and a rewrite is not an option.
Anyways, the attached fix fixes the problem for me, and it would be nice
if it could be included, so that others who still use the old api can
benefit, if you still include rt_ipc then atleast include a not broken
version :)
One last request, the fix looks obviously right, but could some one
please take 5 minutes to take a look and see if I haven't introduced a
whole new set of bugs?
Regards,
Hans
p.s.
I'm not on the list so please cc me.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/