DragonFly bugs List (threaded) for 2004-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: My newyear's resolution is...
On Tue, 6 Jan 2004, Matthew Dillon wrote:
> API, but there is still an issue with the last bit of your kern_time.c
> patch:
>
> + if (tv.tv_sec == 0 && tv.tv_usec < tick)
> + return (0);
>
> The problem is that this may break the guarentee that it sleeps at least
> as long as requested.
That's what the (sleepticks < 1)? contitional in nanosleep()
checked for. I moved the guarantee out of tvtohz() up to
nanosleep() where it "should be".
-Paul.
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]