This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] clock_nanosleep(2), pthread_condattr_[gs]etclock(3)


On Jul 21 21:09, Corinna Vinschen wrote:
> On Jul 21 13:59, Yaakov (Cygwin/X) wrote:
> > On Thu, 2011-07-21 at 11:35 +0200, Corinna Vinschen wrote:
> > > On Jul 21 11:21, Corinna Vinschen wrote:
> > > > No, you're not at all off-base.  Personally I'd prefer to use the native
> > > > NT timer functions, but that's not important.
> > 
> > No problem, that's something I keep forgetting about.
> > 
> > > > What I'm missing is a way to specify relative vs. absolute timeouts in
> > > > your above sketch.  I guess we need a flag argument as well.
> > 
> > Working on this last night, I decided to make the timeout a LONGLONG of
> > 100ns units instead, positive for absolute and negative for relative.
> 
> Good idea.  The value can be immediately used in NtSetTimer and it
> can be used for testing.

Erm... maybe PLARGE_INTEGER would be the right type for this?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]