Managing threads in UML-to-Real-Time-C++ transformation configurations

You can manage threads in a transformation configuration by adding and deleting physical and logical threads.

About this task

For C++ TargetRTS environments, if the type of the built artifact is C++ Library, only logical threads can be specified. If the artifact type is C++ Executable, physical threads can be specified and logical threads can be assigned to them.

To manage threads in a transformation configuration:

Procedure

  1. Open a transformation configuration file (.tc).
  2. In the Transformation Configuration editor, click the Threads tab.
  3. (C++ Executable only) If you want to add a physical thread, complete the following steps. in the Physical threads section, click Add, type a name for the new thread, and click OK.
    1. In the Physical threads section, click Add, type a name for the new thread, and click OK.
    2. Edit the default values for stack size, priority, and implementation class as needed.
  4. If you want to add a logical thread, complete the following steps:
    1. (C++ Executable only) Select a physical thread to which the new logical will be assigned.
    2. In the Logical threads section, click Add, type a name for the new thread, and then click OK.
  5. (C++ Executable only) If you want to move a logical thread from one physical thread to another, drag the logical thread in the Physical threads tree view and drop the thread to another physical thread.
  6. If you want to delete a thread, select the thread in the Physical threads or Logical threads section and click Remove. The MainThread and TimerThread physical threads cannot be removed.

Feedback