VirtualBox

Changeset 89679 in vbox


Ignore:
Timestamp:
Jun 14, 2021 1:10:38 PM (4 years ago)
Author:
vboxsync
Message:

Runtime/r3/timer-posix: Fixes, if inversion causing an already stopped timer to be stopped again causing an error and a running timer to not be stopped at all. Fully initialize itimerspec when stopping a timer or timer_settime will return an error [Follow up fix in RTTimerDestroy]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/timer-posix.cpp

    r89678 r89679  
    669669        TimerSpec.it_value.tv_sec     = 0;
    670670        TimerSpec.it_value.tv_nsec    = 0;
     671        TimerSpec.it_interval.tv_sec  = 0;
     672        TimerSpec.it_interval.tv_nsec = 0;
    671673        int err = timer_settime(pTimer->NativeTimer, 0, &TimerSpec, NULL); NOREF(err);
    672674        AssertMsg(!err, ("%d / %d\n", err, errno));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette