Re: [PATCH] rust: sync: add accessor for the lock behind a given guard
From: Alice Ryhl
Date: Wed Feb 05 2025 - 08:44:22 EST
On Thu, Jan 30, 2025 at 12:51 PM Fiona Behrens <me@xxxxxxxxxx> wrote:
>
> Alice Ryhl <aliceryhl@xxxxxxxxxx> writes:
>
> > Binder has some methods where the caller provides a lock guard, and
> > Binder needs to be able to assert that the guard is associated with the
> > right lock. To enable this, add an accessor to obtain a reference to the
> > underlying lock that you can pass to `ptr::eq`.
> >
> > Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
>
> Reviewed-by: Fiona Behrens <me@xxxxxxxxxx>
I forgot to pick this up on v2. Sorry, but could you resend it on v2?
Alice