From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24058 invoked from network); 20 Jun 2023 08:51:44 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 20 Jun 2023 08:51:44 -0000 Received: (qmail 22379 invoked by uid 550); 20 Jun 2023 08:51:41 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 22344 invoked from network); 20 Jun 2023 08:51:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=K9ulf3HP6Xu1i0zgWwPeyYdKs/iCf/1/7cL5KrPiWic=; b=Smd86gPKEy1YWZqT6V1S91PRWlH7WoQ7LhzYRMGCXQJrF4v76CmWbVWa g44fuOkpENydZ5fHAiwGZ2nCbOXCQmdDlZEabDkYGh3zmqh5fuyAkEYB4 8+HAlm9Mz4gm9pXPySosoRDuvZCn9yCXu1P/XW0dWY0Gx/SlpkR97uqiY Q=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=jens.gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.00,256,1681164000"; d="scan'208";a="113716861" Date: Tue, 20 Jun 2023 10:51:19 +0200 From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt To: "=?UTF-8?B?572X5YuH5Yia?=(Yonggang Luo)" Cc: musl@lists.openwall.com Message-ID: <20230620105119.0090dc45@inria.fr> In-Reply-To: References: <20230620002507.796-1-luoyonggang@gmail.com> <20230620002507.796-5-luoyonggang@gmail.com> Organization: inria.fr X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [musl] Re: [PATCH 4/4] c2y: Add monotonic timed wait support for threads mtx cnd Hello, On Tue, 20 Jun 2023 15:53:42 +0800, =E7=BD=97=E5=8B=87=E5=88=9A(Yonggang Lu= o) wrote: > I'd like to receive some feedback of the function names > mtx_timedlock_monotonic > cnd_timedwait_monotonic I find such interfaces too specific. > is properly as a proposal for c2y(the next standard after c23). I'd much prefer an interface that just adds the time base as a parameter, similar to `pthread_cond_clockdwait` or so, perhaps named `cnd_timedwait_base`. That would be much easier to standardize. Just take an existing POSIX interface, adapt from POSIX clocks to time bases, use a name that fits into the C naming scheme, and copy over and adapt the description. Thanks J=E2=82=91=E2=82=99=E2=82=9B --=20 :: ICube :::::::::::::::::::::::::::::: deputy director :: :: Universit=C3=A9 de Strasbourg :::::::::::::::::::::: ICPS :: :: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus :: :: :::::::::::::::::::::::::::::::::::: =E2=98=8E +33 368854536 :: :: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::