diff options
author | Wedson Almeida Filho <walmeida@microsoft.com> | 2023-04-11 02:45:32 -0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-04-22 00:19:42 +0200 |
commit | 76d4bd591e1101df69c44c819041e374c63f1194 (patch) | |
tree | ce071e007936453452d1d69f8d6a711a1003fdeb /rust/compiler_builtins.rs | |
parent | 6ea5aa08857a81be7114b3c21d6aa6db0bc95f99 (diff) | |
download | linux-76d4bd591e1101df69c44c819041e374c63f1194.tar.gz linux-76d4bd591e1101df69c44c819041e374c63f1194.tar.bz2 linux-76d4bd591e1101df69c44c819041e374c63f1194.zip |
rust: sync: introduce `Lock` and `Guard`
They are generic Rust implementations of a lock and a lock guard that
contain code that is common to all locks. Different backends will be
introduced in subsequent commits.
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Suggested-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230411054543.21278-2-wedsonaf@gmail.com
[ Fixed typo. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/compiler_builtins.rs')
0 files changed, 0 insertions, 0 deletions