Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp119848rdb; Mon, 18 Dec 2023 00:33:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IED/1Vh9AFtLq/K5sMu5lfXQuIrCghDtbyr6Uz5fCYudT6LuC7hdN1jBo8Gxjpsu/toFgSI X-Received: by 2002:a17:90a:5d11:b0:28b:5cd7:84d0 with SMTP id s17-20020a17090a5d1100b0028b5cd784d0mr1054083pji.80.1702888401953; Mon, 18 Dec 2023 00:33:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702888401; cv=none; d=google.com; s=arc-20160816; b=ysQLpvGra7S9Ao6LLfnrY3z/z804nn6meUnHEDutbZsWB76p5HKDCqIrsjR+CrKmGR sbog1iAM/CuAxm6aJlA20eCRRSzjmm6fwPI0xhIqjfgJTiRivka52RXyW8Hp/Eb++oPR KkO46CiiWNSYm0fWB78f8sO1ZVoxJqneqm4l0osieedGFcyl/ikutWHtCDAyC3QeWhHs HBXLzR9yHmFluiwH89vjxEYo48gvcAdcoHxNXBlbQbn7SKIMDg9+zmVos9hFR+PV9E0a Y9clqi/rI3GBylMz1oDrIsHnhl7Iy+oiGLD+ItjJ7ziAiZY4bOG3IQtR+ivxd6Knh61B 0JPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rGsPDIwnCz36o6myxAQrm6KTXCyrXNRQ7FesRSicPsI=; fh=UKWYSmnN/maZQksiiwOqsrhbwCK6TieG3ZyN6z3whbA=; b=mnWvQBPaCnaWjMu5xD0HCAZxqUCQOCfrA+Pt//ss0wsM+OvUFUTe8UvGOSfl47quGu t2GRVxJAGWMQynBBp383bNJfFzxivF2p/LoSdnbZnUIvWcE7vli0d5L728T/zUOROarP 4yz13O4mJtqiNuQAdbQCKuSlI6BVy/3aTFWVeZtvB7s53CJhLrJEQyErfCtmdHL+qJma Xo6dsfcqxnntPINDkLW1ca4igBLPZ2qMfOj+zBXYiRUaa1C+1BPjBEPWhiyjTdAby76W DsGaV3A0k7d8ihma8trM3tNGJeyP/Cwb+aLgrHFf6PzM+PRQNDV3SXfI2RMu42dvnc+G /guw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Cp9gmzYV; spf=pass (google.com: domain of linux-kernel+bounces-3162-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a5-20020a17090a854500b0028b1d340e65si6490544pjw.127.2023.12.18.00.33.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 00:33:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3162-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Cp9gmzYV; spf=pass (google.com: domain of linux-kernel+bounces-3162-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3162-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9ABB5282EB4 for ; Mon, 18 Dec 2023 08:33:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 907101079B; Mon, 18 Dec 2023 08:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Cp9gmzYV" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17882101ED; Mon, 18 Dec 2023 08:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3365e85a4easo1328135f8f.1; Mon, 18 Dec 2023 00:32:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702888367; x=1703493167; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rGsPDIwnCz36o6myxAQrm6KTXCyrXNRQ7FesRSicPsI=; b=Cp9gmzYVmwceR8TCZizm7U+Yufn1rjaz9VzxBkqwwe9rXKOmn75/uAwhe9xu9razK1 93mG/3JBtuHQ75qfRBu5qUl+cstdGamWBKEz+0lXUzxRFodNoVhBgRatXZf02Uvf4zKJ rPi/bojnWfGtOBPGT6Z7GrkkxZABI5Y8mCGyNsoKYjpKipi7/b0dslWJwDTrzd3auSlQ TBXuwkdtwsBZnjO3XkpCBp+5GUI4fDYnn+0CS22Txl7z3iUfjwLFgFl100R+BSf8VppK aKZ5VoNwkl6FAknok7666SJawaxRv3PchuY+3o70j9uubCOi3e6c8AeJ9GNhJh6xlRIA XhGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702888367; x=1703493167; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rGsPDIwnCz36o6myxAQrm6KTXCyrXNRQ7FesRSicPsI=; b=A3sNRtjPPxDKAI2ZqtWakhVO0x4opFqYWEF1PJLFxcyx6t6QnGXfdXrsfQjIEscu5r 6KCKQOqNfk5zEPnnH1D1gNgza7PodygIpdy3Cc1kwZ6PlLaCJ5qVuy0eyj0ZqI8w4ZAi Z1xKBeWhHLghmoA519NSLgzRONXX2OMeXE3+wrRL7o5V+vpdhfsK8Bz3kYK1MceZckSf jEZSpdvg/X2s/FieVGMAXmDjZ9/Uxpot5K7tSTIey5PqhkVng3jOS76FeP8+zFcX7xo9 6P3UlD4qGA3ylJQuJl8/+UuVFcBl5aJ6W8t17yc20Y8VFqv2hIJbi67lOvntb8q6f5+S d83Q== X-Gm-Message-State: AOJu0YzWz+Wgbn8VsAzS7z0PdTEog5oUwBVEaph1sUz5ApAUSTikg2XG LBD9C9mz8qlooe+jbtGE5Q== X-Received: by 2002:adf:f052:0:b0:336:5bcd:7beb with SMTP id t18-20020adff052000000b003365bcd7bebmr2376777wro.17.1702888367258; Mon, 18 Dec 2023 00:32:47 -0800 (PST) Received: from [192.168.1.148] (224.69.114.89.rev.vodafone.pt. [89.114.69.224]) by smtp.googlemail.com with ESMTPSA id w15-20020adfec4f000000b003366cc543casm537184wrn.102.2023.12.18.00.32.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 00:32:46 -0800 (PST) Message-ID: <8328468d-49a6-488c-a94b-61703b205a59@gmail.com> Date: Mon, 18 Dec 2023 08:32:45 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] rust: sync: add `CondVar::wait_timeout` Content-Language: en-GB To: Alice Ryhl , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Thomas Gleixner Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231216-rb-new-condvar-methods-v2-0-b05ab61e6d5b@google.com> <20231216-rb-new-condvar-methods-v2-3-b05ab61e6d5b@google.com> From: Tiago Lam In-Reply-To: <20231216-rb-new-condvar-methods-v2-3-b05ab61e6d5b@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Reviewed-by: Tiago Lam