Re: [PATCH] rust: sync: add accessor for the lock behind a given guard

Alice Ryhl
2025-02-05T13:42:45Z

On Thu, Jan 30, 2025 at 12:51 PM Fiona Behrens <me@kloenk.dev> wrote:
>
> Alice Ryhl <aliceryhl@google.com> 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@google.com>
>
> Reviewed-by: Fiona Behrens <me@kloenk.dev>

I forgot to pick this up on v2. Sorry, but could you resend it on v2?

Alice