|
Message-ID: <20230620105119.0090dc45@inria.fr> Date: Tue, 20 Jun 2023 10:51:19 +0200 From: Jₑₙₛ Gustedt <jens.gustedt@...ia.fr> To: "罗勇刚(Yonggang Luo)" <luoyonggang@...il.com> Cc: musl@...ts.openwall.com Subject: Re: [PATCH 4/4] c2y: Add monotonic timed wait support for threads mtx cnd 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 ::
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.