[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Make condition variables take absolute wakeup time
yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi) wrote:
> > Separate thing, but while changing this.. Could hardclock_ticks be made
> > unsigned? I would say uint32_t. Perhaps same for other *hz counters.
> i'm not sure if unsigned is better or not because calculations on
> hardclock_ticks almost always need to prepare for wrapping anyway.
Almost, but not always; code may be tolerant to non-accurate calculations,
unsigned is shifting-friendly and logically correct (we do not want to have
negative ticks, do we?).
Main Index |
Thread Index |