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

From: Tiago Lam
Date: Mon Dec 18 2023 - 03:33:21 EST


On 16/12/2023 15:31, Alice Ryhl wrote:
Sleep on a condition variable with a timeout.

This is used by Rust Binder for process freezing. There, we want to
sleep until the freeze operation completes, but we want to be able to
abort the process freezing if it doesn't complete within some timeout.

Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>

Reviewed-by: Tiago Lam <tiagolam@xxxxxxxxx>