Re: [PATCH v2 8/8] rust: workqueue: add examples
From: Alice Ryhl
Date: Tue Jun 27 2023 - 04:39:14 EST
Benno Lossin <benno.lossin@xxxxxxxxx> 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@xxxxxxxxxx>
>
> Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
>
> 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