ManagedCodeFrameworkClientCPlusPlus
NOTE: This sample project will not build with the Intel Compiler.
Description
Provides an example of how to use the RTX64 Framework from C++/CLI to change the product's configuration.
Programs
ManagedCodeFrameworkClientCSharp project:
- This project defines the class ManagedCodeFrameworkClientCPlusPlus:Program in the file
Program.cpp
. That class has a single method, Main, which does all the work. - The Main method begins by obtaining a reference to the singleton instance of class IntervalZero.RTX64.Config.Subsystem, which is used to configure the RTX64 real-time subsystem. Next, it outputs the configured HAL Timer Period, the initial size of the Local Memory Pool, and whether or not the subsystem allocates memory from Windows or from the Local Memory Pool. It does this by referencing .NET properties on the Subsystem singleton. Next, it toggles the subsystem to allocate memory from the other source and reports the results. This is done by assigning a new bool value to the UseLocalMemory property.
- Next, the Main method obtains a reference to the singleton instance of class IntervalZero.RTX64.Config.Product, which is used to obtain information about the RTX64 product installation. It uses properties on the Product singleton to display the product version and build number. Note that these properties are read-only.
APIs Referenced
RTX64 Framework Class |
Properties Used |
IntervalZero.RTX64.Config.Subsystem |
HALTimerPeriod LocalMemoryPoolInitialSize UseLocalMemory |
IntervalZero.RTX64.Config.Product |
Version BuildNumber |