tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Make condition variables take absolute wakeup time



> On Wed, May 07, 2008 at 11:14:04PM +0900, YAMAMOTO Takashi wrote:
> 
> > > This is for PR kern/38554. I have compiled it but not tested it yet.
> > > Also, it doesn't handle kpause() but should. Any comments?
> > > 
> > > http://www.netbsd.org/~ad/condvar.diff
> > > 
> > > Andrew
> > 
> > aren't -EWOULDBLOCK and -EINVAL valid clock_t values?
> 
> For a sleep ~497 days into the future at 100Hz, yes. Perhaps uint64_t would
> be better.
> 
> Andrew

as it's an absolute time, it's even worse.

is it necessary for eg. cv_time_sec to return errors?
isn't it enough to simply return the value of hardclock_ticks and
let cv_timedwait handle it?

YAMAMOTO Takashi


Home | Main Index | Thread Index | Old Index