Re: [PATCH] rust: sync: lock: Add an example for Guard::lock_ref()

From: Boqun Feng
Date: Tue Feb 25 2025 - 12:03:42 EST


On Mon, Feb 24, 2025 at 12:19:27PM +0100, Alice Ryhl wrote:
> On Sun, Feb 23, 2025 at 8:21 AM Boqun Feng <boqun.feng@xxxxxxxxx> wrote:
> >
> > To provide examples on usage of `Guard::lock_ref()` along with the unit
> > test, an "assert a lock is held by a guard" example is added.
> >
> > Signed-off-by: Boqun Feng <boqun.feng@xxxxxxxxx>
>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
>

Thanks!

> > This depends on Alice's patch:
> >
> > https://lore.kernel.org/all/20250130-guard-get-lock-v1-1-8ed87899920a@xxxxxxxxxx/
> >
> > I'm also OK to fold this in if Alice thinks it's fine.
>
> I think we can just keep two patches :)
>

Fine by me.

Regards,
Boqun

> Alice