diff options
author | 2025-03-07 15:26:58 -0800 | |
---|---|---|
committer | 2025-03-08 00:55:04 +0100 | |
commit | c2849afafd08a1c3ad881129de48ebe1642f7675 (patch) | |
tree | d933bcb2020070b9c3ac465b5325efde14436d89 /scripts/gdb/linux/utils.py | |
parent | rust: sync: Add accessor for the lock behind a given guard (diff) | |
download | wireguard-linux-c2849afafd08a1c3ad881129de48ebe1642f7675.tar.xz wireguard-linux-c2849afafd08a1c3ad881129de48ebe1642f7675.zip |
rust: sync: lock: Add an example for Guard:: Lock_ref()
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.
(Also apply feedback from Benno.)
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250223072114.3715-1-boqun.feng@gmail.com
Link: https://lore.kernel.org/r/20250307232717.1759087-9-boqun.feng@gmail.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions