mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Jₑₙₛ Gustedt" <jens.gustedt@inria.fr>
To: "罗勇刚(Yonggang Luo)" <luoyonggang@gmail.com>
Cc: musl@lists.openwall.com
Subject: [musl] Re: [PATCH 4/4] c2y: Add monotonic timed wait support for threads mtx cnd
Date: Tue, 20 Jun 2023 10:51:19 +0200	[thread overview]
Message-ID: <20230620105119.0090dc45@inria.fr> (raw)
In-Reply-To: <CAE2XoE_6gt6_rHVxkEskgYrf6TjZQJ0ZXpEA1E_epnZxbkYfdw@mail.gmail.com>

Hello,

On Tue, 20 Jun 2023 15:53:42 +0800, 罗勇刚(Yonggang Luo) 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ₑₙₛ


-- 
:: ICube :::::::::::::::::::::::::::::: deputy director ::
:: Université de Strasbourg :::::::::::::::::::::: ICPS ::
:: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus ::
:: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 ::
:: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

  reply	other threads:[~2023-06-20  8:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20  0:25 [musl] [PATCH 0/4] Add posix/pthread_mutex_clocklock posix/pthread_cond_clockdwait c2y/mtx_timedlock_monotonic c2y/cnd_timedwait_monotonic Yonggang Luo
2023-06-20  0:25 ` [musl] [PATCH 1/4] trim spaces of pthread_cond_timedwait.c and pthread_mutex_timedlock.c Yonggang Luo
2023-06-20  0:25 ` [musl] [PATCH 2/4] add pthread_mutex_clocklock and pthread_cond_clockdwait Yonggang Luo
2023-06-20  0:25 ` [musl] [PATCH 3/4] c23: Implement newly base for timespec_get Yonggang Luo
2023-06-20  7:06   ` [musl] " Jₑₙₛ Gustedt
2023-06-20  0:25 ` [musl] [PATCH 4/4] c2y: Add monotonic timed wait support for threads mtx cnd Yonggang Luo
2023-06-20  7:53   ` [musl] " 罗勇刚(Yonggang Luo)
2023-06-20  8:51     ` Jₑₙₛ Gustedt [this message]
2023-06-20 14:18 ` [musl] [PATCH 0/4] Add posix/pthread_mutex_clocklock posix/pthread_cond_clockdwait c2y/mtx_timedlock_monotonic c2y/cnd_timedwait_monotonic enh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230620105119.0090dc45@inria.fr \
    --to=jens.gustedt@inria.fr \
    --cc=luoyonggang@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).