Possible extension to clock_nanosleep()

Eric Blake eblake@redhat.com
Thu Aug 15 15:46:00 GMT 2019


Today the Austin Group discussed
http://austingroupbugs.net/view.php?id=1271, which is a proposal to add
a way for clock_nanosleep() to return the current time in rmtp when
using TIMER_ABSTIME, on the grounds that it might result in fewer
syscalls in some forms of event loops.

The conclusion of the POSIX folks is that the idea may have merit, but
they are unwilling to standardize this (on the grounds of being pure
invention) unless there is at least some hint of existing practice
and/or some implementation preparing to add a feature along these lines,
such that there is existing practice to refer to.  Is glibc interested
in adding an additional flag to clock_nanosleep() to be combined with
TIMER_ABSTIME for getting at the current time at the completion of the
function, to give the POSIX folks a reference implementation to act on?

(I don't have contact information for the original reporter Scott
Cheloha, or I would have included him in cc)

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20190815/4985b474/attachment.sig>


More information about the Libc-alpha mailing list