On Mon, Dec 07, 2020 at 10:18:04PM +0100, Alexandr Nedvedicky wrote:
> On Mon, Dec 07, 2020 at 12:22:22PM -0800, Philip Guenther wrote:
> > On Mon, Dec 7, 2020 at 11:16 AM Alexandr Nedvedicky <
> > [email protected]> wrote:
> >
> > > What's the plan for rw_write_held()? Currently macro is true, if whoever
> > > holds
> > > the lock.
> > >
> > > >
> > > > +#define rw_write_held(rwl) (rw_status(rwl) == RW_WRITE)
> > >
> >
> > Nope. rw_status() returns RW_WRITE_OTHER if a different thread holds the
> > lock.
> >
> >
I'm sorry being noisy.... it's getting late here. I agree with mpi's diff
and understand how rw_write_held() works in our OpenBSD.
regards
sashan