[ace-users] LynxOS + Timed Semaphores
Sowayan, Abdullah (N-DUA)
abdullah.sowayan at lmco.com
Thu Jul 5 16:16:41 CDT 2007
ACE VERSION: 5.5.9
LynxOS 4.0 doesn't have timed Semaphores, while LynxOS 4.2 does.
In $ACE_ROOT/ace/config-lynxos.h we find the following:
-------------------------------------------------------
#if ACE_LYNXOS_MAJOR == 4 && ACE_LYNXOS_MINOR == 0
# define ACE_LACKS_GETOPT_PROTOTYPE
# define ACE_LACKS_INET_ATON_PROTOTYPE
# define ACE_LACKS_REGEX_H
# define ACE_LACKS_STRCASECMP_PROTOTYPE
# define ACE_LACKS_STRNCASECMP_PROTOTYPE
# define ACE_LACKS_SYS_SELECT_H
# define ACE_HAS_NONCONST_GETBY
#endif
#if (ACE_LYNXOS_MAJOR > 4) || (ACE_LYNXOS_MAJOR == 4 && ACE_LYNXOS_MINOR
>= 2)
// LynxOS 4.2 additons
# define ACE_HAS_POSIX_SEM_TIMEOUT
# define ACE_HAS_MUTEX_TIMEOUTS
#endif
------------------------------------------------------
For LynxOS 4.2 we define ACE_HAS_POSIX_SEM_TIMEOUT because that feature
is available. My question is, since LynxOS 4.0 lacks native support for
timed semaphores, why don't we use ACE's built in emulation by defining
ACE_HAS_POSIX_SEM_TIMEOUT_EMULATION?
Thanks,
Abdul
More information about the Ace-users
mailing list