Messages in this thread | | | Date | Tue, 14 Dec 1999 21:54:23 +0100 | From | Pavel Machek <> | Subject | Re: gettimeofday() a special case : why? |
| |
Hi!
> >Dosemu does this now on single cpu systems. > > Are you sure it's 100% reliable over the time, monotone and with a > picosecond precision and that such way can be extended to SMP? > > >gettimeofday always returns a time recently in the past. > > It's not a matter of recently in the past, but it must be _monotone_. If > you only lose coherency between tv_sec and tv_usec you can just have a TOD > that goes back instead of forward or equal sometime.
Ok, so you just check for monotony in userspace and fix it if it is not :-).
Pavel -- I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care." Panos Katsaloulis describing me w.r.t. patents me at discuss@linmodems.org
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |