Re: [PATCH] rust: sync: lock: Add an example for Guard::lock_ref()
From: Alice Ryhl
Date: Mon Feb 24 2025 - 06:34:17 EST
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>
> 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 :)
Alice