Messages in this thread | | | Date | Tue, 27 Jun 2023 08:38:01 +0000 | Subject | Re: [PATCH v2 8/8] rust: workqueue: add examples | From | Alice Ryhl <> |
| |
Benno Lossin <benno.lossin@proton.me> writes: > On 01.06.23 15:49, Alice Ryhl wrote: >> This adds two examples of how to use the workqueue. The first example >> shows how to use it when you only have one `work_struct` field, and the >> second example shows how to use it when you have multiple `work_struct` >> fields. >> >> Signed-off-by: Alice Ryhl <aliceryhl@google.com> > > Reviewed-by: Benno Lossin <benno.lossin@proton.me> > > I really like that you added these examples! > Is there some particular reason you decided to not use > 0 as the first index in the second example? (you can keep > it this way)
In my head, it felt more natural for the first field to be called 1 and the second field to be called 2. But it doesn't really matter which numbers you use.
Alice
| |