mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 08:46:17 +08:00
* windows.cc (setitimer): Round up when < 1000 usecs.
This commit is contained in:
parent
9cef3cc0d7
commit
5b082caa62
@ -1,3 +1,7 @@
|
|||||||
|
Mon Jun 26 18:32:41 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* windows.cc (setitimer): Round up when < 1000 usecs.
|
||||||
|
|
||||||
Mon Jun 26 17:34:54 2000 Christopher Faylor <cgf@cygnus.com>
|
Mon Jun 26 17:34:54 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* hinfo.cc (hinfo::dup2): Eliminate compiler warning.
|
* hinfo.cc (hinfo::dup2): Eliminate compiler warning.
|
||||||
|
@ -176,6 +176,9 @@ setitimer (int which, const struct itimerval *value, struct itimerval *oldvalue)
|
|||||||
itv = *value;
|
itv = *value;
|
||||||
elapse = itv.it_value.tv_sec * 1000 + itv.it_value.tv_usec / 1000;
|
elapse = itv.it_value.tv_sec * 1000 + itv.it_value.tv_usec / 1000;
|
||||||
if (elapse == 0)
|
if (elapse == 0)
|
||||||
|
if (itv.it_value.tv_usec)
|
||||||
|
elapse = 1;
|
||||||
|
else
|
||||||
return 0;
|
return 0;
|
||||||
if (!(timer_active = SetTimer (gethwnd(), 1, elapse, NULL)))
|
if (!(timer_active = SetTimer (gethwnd(), 1, elapse, NULL)))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user