The OSAL classes

The operating system adapter is an implementation of an abstract factory pattern. For example, in Rational® Rhapsody® Developer for C++, the abstract operating system interface consists of the OMOSFactory class, whose abstract products are classes that represent operating services such as OMOSThread, OMOSMutex, and so on. Each target operating system has its own concrete factory and concrete products that are similarly named, but with the OMOS prefix replaced with an operating system-dependent prefix. For example, the prefix for VxWorks is VxOS, the prefix for pSOSystem is PsosOS, and so on.

The abstract operating system interfaces are defined in RiCOSWrap.h (under $OMROOT\LangC\oxf) and *os.h (under $OMROOT\LangCpp\oxf). Code that uses an operating system adapter directly should include the appropriate file for the class definitions and link with the compiled <env>oxf library or a variant of it.

The operating system interface provides abstract methods to create each type of operating system entity. Because the created classes are abstract, the interface hides the concrete class and returns its abstract representation.

This section contains reference pages for the classes and methods that comprise the abstract interface. For ease-of-use, the classes are presented in alphabetical order under each programming language for C and C++.


Feedback