svn commit: r237202 - in projects/calloutng/sys: kern sys

Attilio Rao attilio at freebsd.org
Mon Jun 18 13:40:50 UTC 2012


2012/6/17, Davide Italiano <davide at freebsd.org>:
> Author: davide
> Date: Sun Jun 17 20:45:45 2012
> New Revision: 237202
> URL: http://svn.freebsd.org/changeset/base/237202
>
> Log:
>   - Extend the condvar(9) KPI introducing a new cv_timedwait_bt_sig()
>   function so that we can specify timeout precision in terms of struct
>   bintime.
>
>   - Now seltdwait() takes three argument rather than two so that their
>   consumers can specify if the timeout should be passed as ticks or
> bintime.
>
>   - Refactor the kern_select() and the sys_poll() code so that these two
>   services may rely on cv_timedwait_bt_sig() rather than on the previous
> less
>   precise cv_timedwait_sig().
>
>   - Rethink the sleepqueue(9) KPI in order to make an attempt of avoiding
>   both code duplication and breakages. Your mileage WILL vary, feel free to
>   comment.

I would still prefer the unified KPI, but at least the committed code
avoids code-duplication, I appreciate your effort here, thanks.

Why you don't do the same thing for callout_ KPI?

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the svn-src-projects mailing list