diff options
author | Fred Hornsey <hornseyf@objectcomputing.com> | 2019-10-23 18:05:56 -0500 |
---|---|---|
committer | Fred Hornsey <hornseyf@objectcomputing.com> | 2019-10-23 18:17:13 -0500 |
commit | 85f3741cc5fa939162ae6445d67290b986ba76d9 (patch) | |
tree | c4bc350fb5564a5963a958049041ed134ae5343a /ACE/ace/config-posix.h | |
parent | 57c52c1183d8d5e11e725fc9886263dfca11f22c (diff) | |
download | ATCD-85f3741cc5fa939162ae6445d67290b986ba76d9.tar.gz |
Expose Monotonic Time Support in Macros
Expose support `ACE_Monotonic_Time_Policy` using
`ACE_HAS_MONOTONIC_TIME_POLICY` and support for monotonic conditions
using `ACE_HAS_MONOTONIC_CONDITIONS`.
Also refactored macros to try to simplify them while retaining
compatibility.
Diffstat (limited to 'ACE/ace/config-posix.h')
-rw-r--r-- | ACE/ace/config-posix.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ACE/ace/config-posix.h b/ACE/ace/config-posix.h index 781b7a8daa8..8afaf7f96d2 100644 --- a/ACE/ace/config-posix.h +++ b/ACE/ace/config-posix.h @@ -58,6 +58,11 @@ # define ACE_HAS_PTHREADS # endif /* ACE_HAS_PTHREADS */ +# if defined (_POSIX_CLOCK_SELECTION) && (_POSIX_POSIX_CLOCK_SELECTION-0 != -1) +# if !defined (ACE_HAS_CONDATTR_SETCLOCK) +# define ACE_HAS_CONDATTR_SETCLOCK +# endif +# endif # endif /* _POSIX_THREADS */ # endif /* ACE_HAS_THREADS */ #endif /* !ACE_MT_SAFE */ @@ -68,4 +73,10 @@ # endif /* ACE_HAS_POSIX_MESSAGE_PASSING */ #endif /* _POSIX_MESSAGE_PASSING */ +#if defined (_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK-0 != -1) +# if !defined (ACE_HAS_CLOCK_GETTIME_MONOTONIC) +# define ACE_HAS_CLOCK_GETTIME_MONOTONIC +# endif +#endif + #endif /* ACE_CONFIG_POSIX_H */ |