Re: a proposed callout API



In message <20061128231010.cbdc4e1d.rnsanchez@xxxxxxxxx>, Ricardo Nabinger Sanc
hez writes:
On Tue, 28 Nov 2006 16:31:18 -0500
John Baldwin <jhb@xxxxxxxxxxx> wrote:

I had intended on using microseconds
with a negative value indicating a relative timeout (so an 'uptime'
timeout, i.e. trigger X us from now) and a positive value indicating an
absolute timeout (time_t-ish, and subject to ntp changes).

Just some devil's advocate thoughts...

What are the advantages of encoding some semantic in one or two bits of the
argument, instead of passing another word with flags?

The bits _will_ go in the flags argument I proposed.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@xxxxxxxxxxx | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: a proposed callout API
    ... with a negative value indicating a relative timeout (so an 'uptime' ... i.e. trigger X us from now) and a positive value indicating an ... 1- the critical path deals with a single word, ...
    (freebsd-arch)
  • Re: a proposed callout API
    ... with a negative value indicating a relative timeout (so an 'uptime' ... What are the advantages of encoding some semantic in one or two bits of the ... natural way to go in order to handle high precision events. ...
    (freebsd-arch)
  • Re: Question about howto do proper timeout checking on connections
    ... > Setsockopt returns zero, indicating that the so_rcvtimeo was ... I used a timeout of 2500 ms to test this. ... Each time data is received or sent on a socket, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Repost: Bug with select?
    ... On Jul 25, Marco Roeland wrote: ... > A select with no timeout, ... > with errno set to EAGAIN, meaning you should try again, which is the ... int flags, fd, len; fd_set writefds; ...
    (Linux-Kernel)
  • Group Policy processing aborted.
    ... timeout 600000 and flags 0x0 ... going on since we moved to 2003 and no compaints. ... not always fail, it is about every other GP update now. ...
    (microsoft.public.windows.server.sbs)