On Sat, 12 Aug 2000, Alfred Perlstein wrote:
> * Bradley T. Hughes <[EMAIL PROTECTED]> [000812 09:16] wrote:
> > It seems that the mutex implementation for recursive mutexes has a bug.
> >
> > a single lock/unlock pair works as expected, but locking 3 times only
> > requires 2 unlocks before the mutex is released. i've read through
> > src/lib/libc_r/uthread/uthread_mutex.c but can't quite follow the logic...
> >
> > i plan on debugging this more and hope to generate a patch... but i
> > figured i'd send off an email about it to see if anyone else can find the
> > solution quicker than i can :)
>
> It looks like an off-by-one-error in libc_r, let me know if this works:
[ Patch elided ]
> Attached so Jason and Daniel can have a look:
This looks good to me :-). Consider it reviewed and commit it if
you'd like.
--
Dan Eischen
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message