Jeff Garzik wrote:
I think we have lived with relative timeouts for so long, it would be unusual to change now. select(2), poll(2), epoll_wait(2) all take relative timeouts.
I'm not talking about always using absolute timeouts.I'm saying the timeout parameter should be a struct timespec* and then the flags word could have a flag meaning "this is an absolute timeout". I.e., enable both uses,, even make relative timeouts the default. This is what the modern POSIX interfaces do, too, see clock_nanosleep.
-- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Michael Tokarev <mjt@tls.msk.ru>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ingo Oeser <netdev@axxeo.de>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- References:
- [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <drepper@redhat.com>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <drepper@redhat.com>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <drepper@redhat.com>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Jeff Garzik <jeff@garzik.org>
- [take24 0/6] kevent: Generic event handling mechanism.
- Prev by Date: Re: [PATCH -mm 2/4][AIO] - export good_sigevent()
- Next by Date: Re: [PATCH -mm 2/4][AIO] - export good_sigevent()
- Previous by thread: Re: [take24 0/6] kevent: Generic event handling mechanism.
- Next by thread: Re: [take24 0/6] kevent: Generic event handling mechanism.
- Index(es):
![]() |