* timer.cc (timer_tracker::settime): Set times to zero when just cancelling a
timer.
This commit is contained in:
parent
dc000a8386
commit
c6a7568670
@ -1,3 +1,8 @@
|
||||
2005-03-28 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* timer.cc (timer_tracker::settime): Set times to zero when just
|
||||
cancelling a timer.
|
||||
|
||||
2005-03-28 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* cygthread.cc (cygthread::detach): Revert to just waiting for thred
|
||||
|
@ -230,7 +230,9 @@ timer_tracker::settime (int in_flags, const itimerspec *value, itimerspec *ovalu
|
||||
if (ovalue)
|
||||
gettime (ovalue);
|
||||
|
||||
if (value->it_value.tv_sec || value->it_value.tv_nsec)
|
||||
if (!value->it_value.tv_sec && !value->it_value.tv_nsec)
|
||||
interval_us = sleepto_us = 0;
|
||||
else
|
||||
{
|
||||
sleepto_us = now + to_us (value->it_value);
|
||||
interval_us = to_us (value->it_interval);
|
||||
|
Loading…
x
Reference in New Issue
Block a user