From 7ed377bc69e8cf96b989018322dc43bc0f2d2e36 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 Oct 2017 08:43:15 +0200 Subject: score: _Watchdog_Is_far_future_monotonic_timespec Update #3117. Update #3182. --- cpukit/score/include/rtems/score/watchdogimpl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/score/include/rtems/score/watchdogimpl.h') diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h index 9fc1f05837..31b44f1d0b 100644 --- a/cpukit/score/include/rtems/score/watchdogimpl.h +++ b/cpukit/score/include/rtems/score/watchdogimpl.h @@ -319,6 +319,13 @@ RTEMS_INLINE_ROUTINE bool _Watchdog_Is_valid_interval_timespec( return _Watchdog_Is_valid_timespec( ts ) && ts->tv_sec >= 0; } +RTEMS_INLINE_ROUTINE bool _Watchdog_Is_far_future_monotonic_timespec( + const struct timespec *ts +) +{ + return ts->tv_sec >= _Watchdog_Monotonic_max_seconds; +} + RTEMS_INLINE_ROUTINE bool _Watchdog_Is_far_future_realtime_timespec( const struct timespec *ts ) -- cgit v1.2.3