Re: [PATCH v4 3/4] rust: sync: add `CondVar::wait_timeout`

From: Alice Ryhl
Date: Wed Jan 24 2024 - 10:07:53 EST


On Mon, Jan 8, 2024 at 3:50 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
> +/// The return type of `wait_timeout`.
> +pub enum CondVarTimeoutResult {
> + /// The timeout was reached.
> + Timeout,
> + /// Somebody woke us up.
> + Woken {
> + /// Remaining sleep duration.
> + jiffies: Jiffies,
> + },
> + /// A signal occurred.
> + Signal {
> + /// Remaining sleep duration.
> + jiffies: Jiffies,
> + },
> +}

I just realized that this needs to be re-exported from kernel::sync.
Otherwise this struct is unreachable, since the kernel::sync::condvar
module is private.

Maybe Miguel can just add that when he picks this?

Alice