Table 21.1 XML Tags for ThreadSettings_t describes the XML tags that you can use to configure thread settings. For more information on thread settings, see:
Tags within <thread> |
Description |
Number of Tags Allowed |
<cpu_list> |
Each <element> specifies a processor on which the thread may run. <cpu_list> Only applies to platforms that support controlling CPU core affinity (see 21.5 Controlling CPU Core Affinity for RTI Threads and the RTI Connext DDS Core Libraries Platform Notes). |
0 or 1 |
<cpu_ |
Determines how the CPUs in <cpu_list> will be used by the thread. The value can be either:
The thread can run on any listed processor, as determined by OS scheduling. The thread will be assigned a CPU from the list in round-robin order. Only applies to platforms that support controlling CPU core affinity (see the RTI Connext DDS Core Libraries Platform Notes). |
0 or 1 |
<mask> |
A collection of flags used to configure threads of execution. Not all of these options may be relevant for all operating systems. May include these bits:
It can also be set to a combination of the above bits by using the “or” symbol (|), such as STDIO|FLOATING_POINT. Default: MASK_DEFAULT |
0 or 1 |
<priority> |
Thread priority. The value can be specified as an unsigned integer or one of the following strings.
When using an unsigned integer, the allowed range is platform-dependent. When thread priorities are configured using XML, the values are considered native priorities. Example: <thread> <mask>STDIO|FLOATING_POINT</mask> <priority>10</priority> When the XML file is loaded using the Java API, the priority is a native priority, not a Java thread priority. |
0 or 1 |
<stack_ |
Thread stack size, specified as an unsigned integer or set to the string THREAD_STACK_SIZE_DEFAULT. The allowed range is platform-dependent. |
0 or 1 |
© 2020 RTI