Changeset 52759 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Sep 16, 2014 11:45:41 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/timer-posix.cpp
r48935 r52759 669 669 TimerSpec.it_value.tv_nsec = 0; 670 670 int err = timer_settime(pTimer->NativeTimer, 0, &TimerSpec, NULL); NOREF(err); 671 AssertMsg(!err, ("%d \n", err));671 AssertMsg(!err, ("%d / %d\n", err, errno)); 672 672 } 673 673 #endif … … 766 766 TimerSpec.it_interval.tv_nsec = pTimer->u64NanoInterval % 1000000000; 767 767 int err = timer_settime(pTimer->NativeTimer, 0, &TimerSpec, NULL); 768 int rc = RTErrConvertFromErrno(err);768 int rc = err == 0 ? VINF_SUCCESS : RTErrConvertFromErrno(errno); 769 769 #endif /* IPRT_WITH_POSIX_TIMERS */ 770 770 … … 813 813 TimerSpec.it_value.tv_nsec = 0; 814 814 int err = timer_settime(pTimer->NativeTimer, 0, &TimerSpec, NULL); 815 int rc = RTErrConvertFromErrno(err);815 int rc = err == 0 ? VINF_SUCCESS : RTErrConvertFromErrno(errno); 816 816 #endif /* IPRT_WITH_POSIX_TIMERS */ 817 817
Note:
See TracChangeset
for help on using the changeset viewer.