[ace-users] LynxOS + Timed Semaphores

Sowayan, Abdullah (N-DUA) abdullah.sowayan at lmco.com
Fri Jul 6 06:38:15 CDT 2007


Johnny,

> I don't see a reason why we can't use the emulation, have you tried to
> build
> with the additonal define on lynxos 4.0?

I shall try it and report back. I was just wondering if the emulation
was not defined intentionally.

Thanks,
Abdul

> "Sowayan, Abdullah (N-DUA)" <abdullah.sowayan at lmco.com> wrote in
message
> news:<mailman.1295.1183671100.5286.ace-users at mail.cse.wustl.edu>...
> > 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